Advertisement
DimkaM

testrom

Dec 25th, 2021
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. @echo off
  2.  
  3. "../../tools/sjasmplus" --nologo --msg=war testrom.asm
  4. copy /Y /B testrom.rom+testrom.rom+testrom.rom+testrom.rom "testrom64.rom" > nul
  5. copy /Y /B testrom64.rom+testrom64.rom+testrom64.rom+testrom64.rom "testrom.rom" > nul
  6. copy /Y /B testrom.rom+testrom.rom "../../us/testrom.rom" > nul
  7. pause
  8.  
  9. DEVICE ZXSPECTRUM48
  10.  
  11. ORG 0x0000
  12. START:
  13. di
  14. xor a
  15. out (0xfe),a
  16. ld sp,0
  17. im 1
  18. ld hl,memconf
  19. ld bc,0xbc77
  20. ld a,0x02
  21. out (c),a
  22. ld de,0x103f
  23. m3
  24. ld bc,0x7ffd
  25. out (c),d
  26. ld bc,0x00f7
  27. m2
  28. outi
  29. ld a,b
  30. sub e
  31. ld b,a
  32. jr nz,m2
  33. ld bc,0x7ffd
  34. ld a,d
  35. xor 0x10
  36. ld d,a
  37. jr z,m3
  38. out (c),a
  39. ld bc,0xff77
  40. ld a,0xa3
  41. out (c),a
  42. ld hl,movtest
  43. ld de,inirtest
  44. ld bc,movsize
  45. ldir
  46. jp inirtest
  47. halt
  48. movtest
  49. disp 0x4000
  50. inirtest
  51. ld bc,0xeff7
  52. ld a,0x14
  53. out (c),a
  54. ld bc,0x0077
  55. ld a,1
  56. out (c),a
  57. ld bc,0057
  58. inirreloop
  59. ld hl,0x4200
  60. inirloop
  61. inir
  62. bit 7,h
  63. jr z,inirloop
  64. jr inirreloop
  65. ent
  66. movsize=$-movtest
  67. memconf
  68. defb 0xff,0x7d,0x7a,0x83
  69. defb 0xff,0x7d,0x7a,0x81
  70. defs 0x4000 - $,0xff
  71. ENDPROG:
  72. SAVEBIN "testrom.rom",START,0x4000
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement