xor ain a,($FE)
How to check if any key pressed?for example, on ZX isCode: [Select]xor ain a,($FE)
chkkey ld b,0ahreadkey ld a,b dec a out (0b5h),a in a,(0b5h) inc a ret nz ;NZ if key pressed djnz readkey ret ; Z if key not pressed
chkkey ld b,0ahreadkey ld a,b dec a out (0b5h),a in a,(0b5h) ld c,a in a,(0b6h) or 0feh and c inc a ret nz ;NZ if key pressed djnz readkey ret ; Z if key not pressed
if you want to check joystick also then:Code: [Select]chkkey ld b,0ahreadkey ld a,b dec a out (0b5h),a in a,(0b5h) ld c,a in a,(0b6h) or 0feh ;11111110b and c inc a ret nz ;NZ if key pressed djnz readkey ret ; Z if key not pressed
chkkey ld b,0ahreadkey ld a,b dec a out (0b5h),a in a,(0b5h) ld c,a in a,(0b6h) or 0feh ;11111110b and c inc a ret nz ;NZ if key pressed djnz readkey ret ; Z if key not pressed
Does anybode tried to build LPT for Timex multicolor mode?
Can you upload some sample images? Then I will modify my Spectrum loader for this mode.
And one question: is possible to change LPT's parameter every frame?
this is simple conversion