sp1187 / vsmile-demos

Various assorted V.Smile demos
15 stars 1 forks source link

bitmap_8bit.asm, bitmap_hicolor.asm: Temporary memory word not needed #1

Closed StinkerB06 closed 3 years ago

StinkerB06 commented 3 years ago

I don't think you'll need to use a temporary memory word during the construction of the linemap's attribute part.

st r2, [tmp1]

becomes

ld r5, r2

and

ld r5, r2 lsl 4
ld r5, r5 lsl 4
or r5, [tmp1]

becomes

ld r2, r2 lsl 4
or r5, r2 lsl 4
ld r2, r2 lsr 4
sp1187 commented 3 years ago

Thanks! It was integrated as part of some general cleanup changes in https://github.com/sp1187/vsmile-demos/commit/38f235672c06e9beeb6cfd72012fb9172590659d.