2020-04-22 21:19:12 -04:00
|
|
|
CODE * ( DE * BC -> DE (high) and HL (low) )
|
2020-06-27 22:01:56 -04:00
|
|
|
DE POP, BC POP, chkPS,
|
|
|
|
HL 0 LDdn,
|
|
|
|
A 0x10 LDri,
|
2020-04-22 21:19:12 -04:00
|
|
|
( loop )
|
2020-06-27 22:01:56 -04:00
|
|
|
HL ADDHLd,
|
|
|
|
E RL, D RL,
|
2020-04-22 21:19:12 -04:00
|
|
|
JRNC, 4 A, ( noinc )
|
2020-06-27 22:01:56 -04:00
|
|
|
BC ADDHLd,
|
2020-04-22 21:19:12 -04:00
|
|
|
JRNC, 1 A, ( noinc )
|
2020-06-27 22:01:56 -04:00
|
|
|
DE INCd,
|
2020-04-22 21:19:12 -04:00
|
|
|
( noinc )
|
|
|
|
A DECr,
|
|
|
|
JRNZ, -14 A, ( loop )
|
2020-06-27 22:01:56 -04:00
|
|
|
HL PUSH,
|
2020-04-22 21:19:12 -04:00
|
|
|
;CODE
|