Este es el Disassembly listing:
Ete funciona
Codigo:
279: posmem=(40*y);
00033A 90402E mov.b [0x001c+2],0x0000
00033C FB0080 se.b 0x0000,0x0002
00033E 200280 mov.w #0x28,0x0000
000340 B98800 mul.ss 0x0002,0x0000,0x0000
000342 DE80CF asr 0x0000,#15,0x0002
000344 980720 mov.w 0x0000,[0x001c+4]
000346 980731 mov.w 0x0002,[0x001c+6]
280: posmem+=(x/8);
000348 78001E mov.w [0x001c],0x0000
00034A 200082 mov.w #0x8,0x0004
00034C 90011 repeat #17
00034E D80002 div.sw 0x0000,0x0004
000350 B90161 mul.su 0x0000,#1,0x0004
000352 90002E mov.w [0x001c+4],0x0000
000354 9000BE mov.w [0x001c+6],0x0002
000356 410000 add.w 0x0004,0x0000,0x0000
000358 498081 addc.w 0x0006,0x0002,0x0002
00035A 980720 mov.w 0x0000,[0x001c+4]
00035C 980731 mov.w 0x0002,[0x001c+6]
Ete no funciona
Codigo:
279: posmem=(40*y)+(x/8);
00033A 90402E mov.b [0x001c+2],0x0000
00033C FB0080 se.b 0x0000,0x0002
00033E 200280 mov.w #0x28,0x0000
000340 B98A00 mul.ss 0x0002,0x0000,0x0008
000342 78001E mov.w [0x001c],0x0000
000344 200082 mov.w #0x8,0x0004
000346 90011 repeat #17
000348 D80002 div.sw 0x0000,0x0004
00034A 400004 add.w 0x0000,0x0008,0x0000
00034C DE80CF asr 0x0000,#15,0x0002
00034E 980720 mov.w 0x0000,[0x001c+4]
000350 980731 mov.w 0x0002,[0x001c+6]