On Thu, 3 Jul 1997, Guy Gingras wrote:
> Does anyone have a prog,txt, or any other thing that a could learn
> assembly I want something for someone who knows absolutly nothing about
> assembly (even if a do a little)... Because all the txt that ive found
> tell you who to prg ... but dont tell you what it does ... (a txt about
> INT would be great).. also an explication of what ax,cx do ..
Basically you have a handful of data and pass it to an interrupt for
processing. AX,BX,CX,DX are "registers" that the CPU uses. Generally the
INT points to a service, like DOS's service 21, and AH contains the
function that you want to use. Usually you also need to pass more info
(like, where is the data at?) to the function, so you use the other
registers do this.
cseg segment
assume cs:cseg
org 100h ; *.COM format
Begin:
mov dx,offset Msg ;Point DX to some data.
mov ah,09h ;Use DOS interrupt 21, function 9.
int 21h
ret ;Exit back to the DOS prompt.
Msg db 'COM skeleton.',10,13,36 ; DX is pointed to this data.
cseg ends
end Begin
--- ifmail-tx (i386 Linux)
---------------
* Origin: James Vahn (jvahn@short.circuit.com) (1:346/15.1)
|