Mirror of CollapseOS
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

27 satır
404B

  1. #include "user.inc"
  2. ; Glue code for the emulated environment
  3. ZASM_INPUT .equ 0xa000
  4. ZASM_OUTPUT .equ 0xd000
  5. jr init ; 2 bytes
  6. ; *** JUMP TABLE ***
  7. jp strncmp
  8. jp addDE
  9. jp upcase
  10. init:
  11. di
  12. ld hl, RAMEND
  13. ld sp, hl
  14. ld hl, ZASM_INPUT
  15. ld de, ZASM_OUTPUT
  16. call USER_CODE
  17. ; signal the emulator we're done
  18. ; BC contains the number of written bytes
  19. ld a, c
  20. ld c, b
  21. out (c), a
  22. halt
  23. #include "core.asm"