mirror of
https://github.com/irmen/prog8.git
synced 2025-02-16 22:30:46 +00:00
tweak word shift unroll
This commit is contained in:
parent
a92ec14989
commit
6b5211ad12
@ -881,7 +881,7 @@ internal class AugmentableAssignmentAsmGen(private val program: Program,
|
||||
else
|
||||
asmgen.out(" lda #0 | sta $name")
|
||||
}
|
||||
value>2 -> asmgen.out("""
|
||||
value>3 -> asmgen.out("""
|
||||
ldy #$value
|
||||
- asl $name
|
||||
rol $name+1
|
||||
|
@ -5,16 +5,6 @@
|
||||
|
||||
main {
|
||||
sub start() {
|
||||
uword uw
|
||||
ubyte ub1
|
||||
ubyte ub2
|
||||
|
||||
uw = ub1 as uword + ub2 ; fairly ok asm.. but the next though...:
|
||||
ub1++
|
||||
uw = ub1 + ub2 ; TODO horrible asm using the eval stack... fix
|
||||
|
||||
uw *= 8 ; TODO is using a loop... unroll somewhat
|
||||
|
||||
txt.print("hello\n")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user