flat assembler
Message board for the users of flat assembler.
Index
> Windows > Altering a FASM example .ASM? |
Author |
|
revolution 16 Jan 2014, 00:40
Post your code so we can see what you did.
|
|||
16 Jan 2014, 00:40 |
|
whakamaru 19 Jan 2014, 20:32
code is at https://sites.google.com/site/veryoddasm/
the FASM instructions for PEDEMO.ASM are very different from those in PE64DEMO.ASM? I regret the delay... this library internet is 8 bicycle kilometres from "username", I don't come every day. |
|||
19 Jan 2014, 20:32 |
|
revolution 20 Jan 2014, 02:26
That code is incomplete and doesn't compile as is.
To make it easier for us to help you perhaps you can post a complete example of your problem that compiles and does what you mentioned above. If we have to go about adding bits of code then we might add something different from what you did or just simply be too busy to spend so much time on it. BTW: Rather than posting code like that into an external site you can post it here in your message and use the code tags. |
|||
20 Jan 2014, 02:26 |
|
whakamaru 27 Jan 2014, 22:36
As in the first post... I put the syntax into the PE64DEMO.ASM file, then ran
fasm my64.txt my64.exe it compiled, but the resulting exe did not display anything. Here is a short bit of syntax in 64 and 16 bit form Code: mov rax,0xabcd ; mov ax,abcd mov rbx,10 ; mov bx,a xor rcx,rcx ;xor cx,cx @@: xor rdx,rdx ;xor dx,dx div rbx ;div bx push rdx ;push dx save remainder in reverse order inc rcx ;inc cx count the digits or rax,rax ;or ax,ax jnz @b jnz 108 @@: pop rax ;pop ax get digit add al,48 ;add al,30 make it ASCII mov ah,14 ;mov ah,e display... int 16 ;int 10 digit loop @b ;loop 112 mov ah,76 ;mov ah,4c EXIT int 33 ;int 21 to OS I would like to know what fasm directives to use to produce an executable 64-bit program. Last edited by whakamaru on 28 Jan 2014, 04:23; edited 1 time in total |
|||
27 Jan 2014, 22:36 |
|
revolution 27 Jan 2014, 22:50
revolution wrote: That code is incomplete and doesn't compile as is. |
|||
27 Jan 2014, 22:50 |
|
baldr 28 Jan 2014, 11:48
whakamaru wrote: I would like to know what fasm directives to use to produce an executable 64-bit program. whakamaru wrote: it compiled, but the resulting exe did not display anything. |
|||
28 Jan 2014, 11:48 |
|
whakamaru 29 Jan 2014, 22:22
If ROM interrupts don't work in 64-bit, then how does one display the computed answer?
My alteration to PEDEMO.ASM worked, so why doesn't the alteration to PE64DEMO.ASM do similarly, to put the answer into the "Hello World" space? I might try using an existing EXE header from Windows and adding my machine code that FASM has generated. That might work? |
|||
29 Jan 2014, 22:22 |
|
revolution 30 Jan 2014, 03:09
whakamaru wrote: If ROM interrupts don't work in 64-bit, then how does one display the computed answer? |
|||
30 Jan 2014, 03:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.