mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-24 15:29:23 +00:00
16 lines
177 B
Plaintext
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
|
|
}
|