Advertisement
Runer112

4-buffer muxing display prototypes

Jun 30th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. 4Int:
  2. pop de ;FOV, shadows
  3. ld a,e
  4. xor d
  5. and c
  6. xor d
  7. pop de ;walls, entities
  8. or d
  9. or e
  10. out ($11),a ;55 cycles
  11.  
  12.  
  13. 4Int:
  14. pop de ;FOV, shadows
  15. ld a,e
  16. xor d
  17. and %00000000
  18. xor d
  19. pop de ;walls, entities
  20. or d
  21. or e
  22. out ($11),a ;58 cycles
  23.  
  24.  
  25. 3Int1Ext:
  26. pop de ;shadows, walls
  27. ld a,(hl) ;FOV
  28. xor e
  29. and c
  30. xor e
  31. or d
  32. pop de ;entities, next shadows
  33. or e
  34. out ($11),a ;58 cycles
  35. inc l
  36. ld a,(hl)
  37. inc hl
  38. xor d
  39. and c
  40. xor d
  41. pop de ;walls, entities
  42. or e
  43. or d
  44. out ($11),a ;58 cycles
  45.  
  46.  
  47. 2Int2Int:
  48. pop de ;shadows, walls
  49. ld a,(hl) ;FOV
  50. inc l
  51. xor e
  52. and c
  53. xor e
  54. or (hl) ;entities
  55. inc hl
  56. or d
  57. out ($11),a ;61 cycles
  58.  
  59.  
  60. 2Int2Ext:
  61. pop de ;shadows, walls
  62. ld a,(hl) ;FOV
  63. xor e
  64. and c
  65. xor e
  66. inc h
  67. inc h
  68. inc h
  69. or (hl) ;entities
  70. inc hl
  71. or d
  72. out ($11),a ;69 cycles
  73. pop de ;shadows, walls
  74. ld b,(hl) ;entities
  75. dec h
  76. dec h
  77. dec h
  78. ld a,(hl) ;FOV
  79. inc l
  80. xor e
  81. and c
  82. xor e
  83. or b
  84. or d
  85. out ($11),a ;71 cycles
  86.  
  87.  
  88. 2Int2Ext:
  89. pop de ;shadows, walls
  90. ld a,(hl) ;FOV
  91. xor e
  92. and c
  93. xor e
  94. or d
  95. ld d,h
  96. inc h
  97. inc h
  98. inc h
  99. or (hl) ;entities
  100. ld h,d
  101. inc hl
  102. out ($11),a ;77 cycles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement