flat assembler
Message board for the users of flat assembler.
Index
> Main > can fasm do this? |
Author |
|
revolution 30 Oct 2009, 08:09
Read up about the load directive.
Code: table: dd 0,1,2,whatever,... rept 10 i:0 { load x dword from table+4*i*i mov eax,x } |
|||
30 Oct 2009, 08:09 |
|
revolution 30 Oct 2009, 08:12
But if all you want to do is generate squares then:
Code: rept 10 i:0 { mov eax,i*i } |
|||
30 Oct 2009, 08:12 |
|
tthsqe 19 Nov 2009, 06:24
How about this one:
How can you get fasm to compile something like this: Code: .ifc x1 .nz y1 .elseif x2 .nz y2 .elseif x3 .nz y3 .else y4 .endif into: Code: x1 jnz .1 x2 jnz .2 x3 jnz .3 y4 jmp .end .3: y3 jmp .end .2: y2 jmp .end .1: y1 .end: It essentially involves movinf the intruction blocks y1,y2,.. around but keeping the condition checking block x1,x2 in the same order. |
|||
19 Nov 2009, 06:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.