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
is there any exmaples/tuts for win32asm console application?
i am tired of wiriting crappy old 16bit asm with no good debugger availible!! :(
thnx
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
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
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:
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!
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!
I wrote this a while ago for Oages to learn from... (and anyone else at the time):
HLA has a comprehensive console library. There are routines for input, output, scrolling
and a lot more. The source is also available.
and a lot more. The source is also available.
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
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
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
wizzra,
Here is also the cvpack utility.(old version required for the 16-bit linker)
Regards,
Vortex
Here is also the cvpack utility.(old version required for the 16-bit linker)
Regards,
Vortex
great!
thnx guys, i'm gonna try to play with the source/exmaples u put !
and see what comes up!
thnx guys, i'm gonna try to play with the source/exmaples u put !
and see what comes up!
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...
cuz it drives me crazy...
Wizzra,
Did you run the assembler with the debugging swiches?
ml /c /Zi /Zd myfile.asm
Did you run the assembler with the debugging swiches?
ml /c /Zi /Zd myfile.asm
this is what i do:
ml /c /Zi /Zd work3.asm
link /codeview work3.obj
<enter>
<enter>
<enter>
<enter>
cv work3.exe
no source in codeview =/
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 =/
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.
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.
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!
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!
That's O.K. Wizzra:alright:
Regards,
Vortex
Regards,
Vortex