zx_01_output_char_32_tty_z88dk_23_atr.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32_tty_z88dk/zx_01_output_char_32_tty_z88dk_23_atr.asm

SECTION code_driver
SECTION code_driver_terminal_output

PUBLIC zx_01_output_char_32_tty_z88dk_23_atr

zx_01_output_char_32_tty_z88dk_23_atr:

   ; atr dx,dy
   
   ; de = parameters *
   
   ex de,hl
   
   ld d,(hl)                   ; d = dy
   inc hl
   ld e,(hl)                   ; e = dx
   
   ex de,hl

   ld e,(ix+14)                ; e = x
   ld d,(ix+15)                ; d = y
   
   ld a,l
   add a,e
   ld e,a                      ; e = x + dx
   
   ld a,h
   add a,d
   ld d,a                      ; d = y + dy

   ld (ix+14),e                ; store x coord
   ld (ix+15),d                ; store y coord
   
   ret
