Hello,

I need to write a COM programme (assemble an *.ASM file to a *.COM) and I am wondering what a ASM skeleton for this would look like.Thanks in advance!

sharpe
Posted on 2005-03-20 10:51:37 by sharpe
Here's two different forms, first without model


; Warm Boot.  Written from information in Pc Mag Vol 11, No. 5, Pg 439
.286
CSEG SEGMENT 'CODE'
ASSUME CS:CSEG, DS:CSEG, ES:CSEG
ORG 0100H
START:
xor bx,bx
MOV ds,bx ;store loc=0000:0472
mov di,0472h
mov ,1234h ;reboot code
push 0ffffh ;reboot prog at ffff:0000
push bx ;still zero
retf
CSEG ENDS
END START


or one using the .model stuff

.model tiny
.code
.startup
mov cx,25
beeploop:
mov al,7
int 29h
loop beeploop
ret
end
Posted on 2005-03-20 14:46:44 by JimG