flat assembler
Message board for the users of flat assembler.
Index
> DOS > Tutorial (com file just flashing up in a window) |
Author |
|
vbVeryBeginner 14 Dec 2004, 05:32
it displayed an "a" on my pc
Code: E:\>fasm a.txt a.com flat assembler version 1.56 1 passes, 8 bytes. E:\>a a E:\> i guess u need to run it from command prompt, not double click the .com file :p i am using win 95 :p |
|||
14 Dec 2004, 05:32 |
|
Matrix 14 Dec 2004, 09:56
howdy,
add this before int 20h Code: xor ah,ah int 16h |
|||
14 Dec 2004, 09:56 |
|
dtrainor 14 Dec 2004, 20:51
vbVeryBeginner wrote: i guess u need to run it from command prompt, not double click the .com file True. Breaking the windows mentality requires some discipline. |
|||
14 Dec 2004, 20:51 |
|
vbVeryBeginner 15 Dec 2004, 05:10
Quote:
if u r using the old windows 95, 98, or ME which didn't support sort of cache command prompt like what in windows 2000 and XP, where when u press the up arrow, u could get the previous typed command (so u don't have to type every time u wanna assemble and run) u could get a PSDK "cmd" version which could run in old win9x. check this out -> http://ldt.mit.edu/consize.html |
|||
15 Dec 2004, 05:10 |
|
bubach 15 Dec 2004, 08:18
vbVeryBeginner wrote: if u r using the old windows 95, 98, or ME which didn't support sort of cache command prompt like what in windows 2000 and XP, where when u press the up arrow, u could get the previous typed command (so u don't have to type every time u wanna assemble and run) or u can run the dos program "doskey.exe", which does that... |
|||
15 Dec 2004, 08:18 |
|
dtrainor 17 Dec 2004, 20:11
Matrix wrote: howdy, And I did this, which kept the window open. I am running an XP with 500MB memory. I want to use flat 32-bit addressing. Is using a DOS Window under XP the right environment for that? This is a pure number crunching algorithm, almost no user interface necessary. |
|||
17 Dec 2004, 20:11 |
|
vid 17 Dec 2004, 21:22
Quote: I want to use flat 32-bit addressing. Is using a DOS Window under XP the right environment for that? absolutely no, you won't run flat real or unreal mode under any protected-mode environment (even win95). You must use dos (or restarting to dos from w95/w98). |
|||
17 Dec 2004, 21:22 |
|
vbVeryBeginner 18 Dec 2004, 00:00
dtrainor wrote:
did u mean the feature in OS "real mode"? |
|||
18 Dec 2004, 00:00 |
|
dtrainor 18 Dec 2004, 05:40
vid wrote:
vbVeryBeginner wrote:
This is from the book Assembly Language Step-By-Step by Duntemann: (about 1999-2000) "Protected mode assembly language programs may be written for both Windows NT and Linux (I am assuming that XP replaces NT). The easiest way to do it under NT is to create console applications, which are text-mode programs that run in a text-mode window called a console. The console is controlled through a command line almost identical to the one in MS-DOS. Console applications use protected mode flat model and are fairly straightforward compared to writing Windows applications." The above is what I want to do. I interpreted this to mean I use fasmc156. Then I boot my computer into XP. Then I open a command prompt. Then in this I can build and run programs using the protected mode flat model 32-bit addresses. Can I do it like that, or must I do something else? |
|||
18 Dec 2004, 05:40 |
|
bubach 18 Dec 2004, 09:26
You can make 32-bit command line programs under XP.
It's called "format PE console" instead of "format MZ" or "org 0x100" (com-files)... Last edited by bubach on 13 Feb 2012, 15:18; edited 1 time in total |
|||
18 Dec 2004, 09:26 |
|
vid 18 Dec 2004, 11:15
oh, that's what you wanted. Like bubach said, but you have to use APIs to commenicate with OS (not int 21h), and you executable must have a bit different structure etc. There is Iczlions tutorial for this somewhere.
|
|||
18 Dec 2004, 11:15 |
|
gumletis 20 Dec 2004, 12:11
i have try the same and it forgot to put RET in the last line, maybe that will help you
|
|||
20 Dec 2004, 12:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.