flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vbVeryBeginner
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 |
|||
![]() |
|
Matrix
howdy,
add this before int 20h Code: xor ah,ah int 16h |
|||
![]() |
|
dtrainor
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. |
|||
![]() |
|
vbVeryBeginner
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 ![]() |
|||
![]() |
|
bubach
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... |
|||
![]() |
|
dtrainor
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. |
|||
![]() |
|
vid
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). |
|||
![]() |
|
vbVeryBeginner
dtrainor wrote:
did u mean the feature in OS "real mode"? |
|||
![]() |
|
dtrainor
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? |
|||
![]() |
|
bubach
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 |
|||
![]() |
|
vid
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.
|
|||
![]() |
|
gumletis
i have try the same and it forgot to put RET in the last line, maybe that will help you
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.