heya,
is there any exmaples/tuts for win32asm console application?
i am tired of wiriting crappy old 16bit asm with no good debugger availible!! :(
thnx
Posted on 2003-04-14 11:53:40 by wizzra
wizzra,

There are alot of console app. examples in the board.Just make a
little search.You can use some masm32 lib. functions for console
applications:

ClearScreen,locate,StdIn,StdOut,StripLF

Which is your development tool for 16-bit applications?

Regards,

Vortex
Posted on 2003-04-14 12:16:20 by Vortex
hi vortex,
i use Multi-Edit to edit my asm files, and link with masm5
i do that cuz school teaches 16bit and the projects i need to code is in that env.

for the exe template we use:


DSEG SEGMENT
;
dseg ends
sseg segment stack
dw 100h dup(?)
sseg ends
cseg segment word public 'code'
assume cs:cseg,ds:dseg,ss:sseg
start proc far
push ds
mov ax,0
PUSH AX
MOV AX,DSEG
mov ds,ax
;
;<main program>
;
ret ;<end of program>
start endp
cseg ends ;<end of segment>
end start


i tried use masm (with old linker as posten in win32asm's page) but didn't compiled either :(

seconf of all, i am using CodeView as for my 16bit debugger but i cannot get the symbols to load and use the source code while debuggin..:(

if ya have any suggestions, help..i appreciate!
Posted on 2003-04-14 13:37:25 by wizzra
I wrote this a while ago for Oages to learn from... (and anyone else at the time):
Posted on 2003-04-14 16:41:51 by NaN
HLA has a comprehensive console library. There are routines for input, output, scrolling
and a lot more. The source is also available.
Posted on 2003-04-14 16:52:50 by Odyssey

heya,
is there any exmaples/tuts for win32asm console application?
i am tired of wiriting crappy old 16bit asm with no good debugger availible!! :(
thnx


Check the "Console Application" part of the FAQ:

http://www.asmcommunity.net/board/index.php?topic=6670
Posted on 2003-04-14 18:05:11 by bazik
wizzra,

Here is a small example and the linker from the masm 6.11 package.
Type cv demo.exe to debug the example code.

Regards,

Vortex
Posted on 2003-04-15 03:00:33 by Vortex
wizzra,

Here is also the cvpack utility.(old version required for the 16-bit linker)

Regards,

Vortex
Posted on 2003-04-15 05:39:24 by Vortex
great!
thnx guys, i'm gonna try to play with the source/exmaples u put !
and see what comes up!
Posted on 2003-04-15 15:27:44 by wizzra
hm..only problem i have now is that i can't get CodeView to load the exe i compile with its source (i have used cvpack), and /codeview in the link file, do i miss any switch/option ?
cuz it drives me crazy...
Posted on 2003-04-16 02:00:38 by wizzra
Wizzra,

Did you run the assembler with the debugging swiches?

ml /c /Zi /Zd myfile.asm
Posted on 2003-04-16 02:18:36 by Vortex
this is what i do:

ml /c /Zi /Zd work3.asm
link /codeview work3.obj
<enter>
<enter>
<enter>
<enter>



Line/Address size = 580
Public symbol size = 56
Initial symbol size = 662
Final symbol size = 700
Global symbol size = 0
Initial type size = 60
Compacted type size = 36

cv work3.exe

no source in codeview =/
Posted on 2003-04-16 04:32:27 by wizzra
Wizzra,

Try to use the macro assembler from the masm32 package.

Another trick,erase the current.sts and clrfile4.cv4 files before running the debugger.

I have no problem with CV.
Posted on 2003-04-16 04:52:49 by Vortex
yeaaahhh!!
finally got it to work!
thnx vortex hehe :))
:alright:

i also noted that i had a small warning while compiling, and seems it didn't let codeview load the src, its all ok now!
Posted on 2003-04-16 05:55:43 by wizzra
That's O.K. Wizzra:alright:

Regards,

Vortex
Posted on 2003-04-16 07:08:46 by Vortex