mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-23 23:30:22 +00:00
16 lines
267 B
Plaintext
16 lines
267 B
Plaintext
|
|
inline asm byte __mul_u8u8u8() {
|
|
? LDA #0
|
|
? JMP __mul_u8u8u8_start
|
|
__mul_u8u8u8_add:
|
|
? CLC
|
|
? ADC __reg.lo
|
|
__mul_u8u8u8_loop:
|
|
? ASL __reg.lo
|
|
__mul_u8u8u8_start:
|
|
? LSR __reg.hi
|
|
? BCS __mul_u8u8u8_add
|
|
? BNE __mul_u8u8u8_loop
|
|
? RTS
|
|
}
|