1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-06 06:06:31 +00:00
millfork/include/zp_reg.mfk

16 lines
177 B
Plaintext

inline asm byte __mul_u8u8u8() {
? LDA #0
? JMP start
add:
CLC
ADC __reg.lo
loop:
ASL __reg.lo
start:
LSR __reg.hi
BCS add
BNE loop
? RTS
}