my subject is assembly programming.. and i was wondering how to use it in our os which is windows 98.

we've tried it in dos prompt. but unable to run a simple program.

can you give me some simple examples?

Thanks!

:grin: :alright:
Posted on 2004-08-08 17:54:12 by zugzwang
Do you want to create a DOS program (using INT 21H for system services), or a Win32 program (using the Windows API) ?
Posted on 2004-08-08 18:14:31 by tenkey
hi,

my professor said we will take it first in DOS...

then if we are more familiar we will try it in Windows API..

so, I would like to ask if you can give me the steps or examples

of Turbo Assemly program..


thanks in advance..!!!:alright:

cj
Posted on 2004-08-14 03:55:58 by zugzwang
the thing i coded looooooooooooooong time ago :P

it shows the interrupts addresses

source included :)
Posted on 2004-08-14 12:39:24 by ti_mo_n
hi jampack,


in the page below you can find the basic aspects and some examples of Windows assembly with TASM:

http://library.succurit.com/e-zines/codebreakers-vx-zine/cb5103.txt


to compile a code, you must have TASM 5.0 (TASM32 and TLINK32) and type in DOS:


tasm32 /ml /q your-app.asm

tlink32 /Tpe /c /x /aa /V4.0 your-app.obj,your-app.exe,,kernel32.lib user32.lib gdi32.lib dllneeded4.lib dllneeded5.lib dllneededn.lib

:)
Posted on 2004-08-14 20:25:12 by Marginais
same thing as above, pnly this time it's commented properly :)
Posted on 2004-08-14 23:20:34 by ti_mo_n
ti_mo_n,

You should consider using simplified segment definitions like:


.model small
.stack
.data
msg db 'Hello DOS!','$'
.code
start:
mov ax,@data
mov ds,ax
mov dx,OFFSET msg
mov ah,9
int 21h
mov ah,04Ch
int 21h
END start
Posted on 2004-08-15 03:50:36 by Vortex
yes, of course - NOW i know that :) --- i wrote this little example about 4 yrs ago :)

now i use only

ideal
p586n
model flat, stdcall
segment data para use32 readonly
align 16
EVENDATA

:P

programming in windows is muuuch easier (read: it's easier to remember what "MessageBoxA" does than INT xx, AH yy, AL yy), so i dropped DOS programming :)
Posted on 2004-08-16 00:50:41 by ti_mo_n
simple yet it's a great start for us..

by the way, our prof. give us new headache..

she wants a program that would let you input a char..
then read the char. as output..///

thanks.. :alright:

:stupid: :grin:
Posted on 2004-08-16 04:37:14 by zugzwang