pstorestr2.asm 508 B

1234567891011121314151617181920212223242526
  1. ; vim:ts=4:et:sw=4
  2. ; Stores an string (pointer to the HEAP by DE) into the address pointed
  3. ; by (IX + BC). No new copy of the string is created into the HEAP, since
  4. ; it's supposed it's already created (temporary string)
  5. ;
  6. #include once <storestr2.asm>
  7. ;
  8. __PSTORE_STR2:
  9. lda z80_ix ;- push ix
  10. pha
  11. lda z80_ix+1
  12. pha
  13. pla ;- pop hl
  14. sta z80_h
  15. pla
  16. sta z80_l
  17. lda z80_l ;- add hl,bc
  18. clc
  19. adc z80_c
  20. sta z80_l
  21. lda z80_h
  22. adc z80_b
  23. sta z80_h
  24. jmp __STORE_STR2 ;- jp __STORE_STR2