get_t.s (686B)
1 .include "global.s" 2 3 .area _HOME 4 5; void get_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, uint8_t *tiles); 6 7_get_tiles:: 8 LDHL SP, #5 9 LD A, (HL-) 10 LD E, A 11 LD A, (HL-) 12 LD D, A 13 PUSH DE 14 LD A, (HL-) 15 LD E, A 16 LD D, (HL) 17 LDHL SP, #11 18 LD A, (HL-) 19 LD B, A 20 LD A, (HL-) 21 LD C, A 22 LD A, (HL-) 23 LD L, (HL) 24 LD H, A 25 26 JP .get_xy_tt ;; Store background tile table into (BC) at XY = DE, size WH on stack, from vram from address (HL)