Changes

Jump to: navigation, search

Programming:Next / previous line calculation

211 bytes added, 10:46, 16 January 2016
/* Firmware */
call SCR_PREV_LINE
 
 
ACTUAL #BC29 ROUTINE FOLLOWS:
 
ld a,h:sub #08:ld h,a:and #38:cp #38:ret nz
ld a,h:add #40:ld h,a:ld a,l:sub reg1*2:ld l,a:ret nc ; reg1= CRTC reg.1 value
ld a,h:dec h:and #07:ret nz
ld a,h:add #08:ld h,a:ret
 
</pre>
[[Category:Programming]]
2,912
edits