So I have been using CSpect, and updated the layer2.asm example just before the comments with the following code (See https://www.specnext.com/tbblue-io-port-system/ for reference).
Note, this is currently not implemented on CSpect.
Essentially, the code sets layer2 to clip to 0,40 to 127,191, Sprites to clip 128,40 to 255,191 and ULA (Spec Screen) to 0,0,255,39
Is there a way to achieve the same using the NEXTREG op codes?
Code: Select all
; Layer2
ld bc,$243b
ld a,$18
out (c),a
ld bc,$253b
ld a,0
out (c),a
ld a,127
out (c),a
ld a,40
out (c),a
ld a,191
out (c),a
; Sprites
ld bc,$243b
ld a,$19
out (c),a
ld bc,$253b
ld a,128
out (c),a
ld a,255
out (c),a
ld a,40
out (c),a
ld a,191
out (c),a
; ULA
ld bc,$243b
ld a,$1A
out (c),a
ld bc,$253b
ld a,0
out (c),a
ld a,255
out (c),a
ld a,0
out (c),a
ld a,39
out (c),a