Thread View: alt.lang.asm
3 messages
3 total messages
Started by om...@inforamp.n
Tue, 02 Jan 1996 00:00
NEWBIE HERE NEEDS HELP!!
Author: om...@inforamp.n
Date: Tue, 02 Jan 1996 00:00
Date: Tue, 02 Jan 1996 00:00
10 lines
324 bytes
324 bytes
Hi, All! This is my first time in this newsgroup and I know only 1 thing in ASM: How to print things on the screen. But I'm trying to make a .COM file out of it. So I was wondering if anybody could send me the source for a .COM file that displays "Hello, World!" on the screen. Thanx in advance. - om...@inforamp.net
Re: NEWBIE HERE NEEDS HELP!!
Author: snm@funcoland
Date: Tue, 02 Jan 1996 00:00
Date: Tue, 02 Jan 1996 00:00
27 lines
754 bytes
754 bytes
On 2 Jan 1996 15:18:58 GMT, om...@inforamp.net (Erno Csanyi) wrote: >Hi, All! > >This is my first time in this newsgroup and I know only 1 thing in ASM: How to >print things on the screen. But I'm trying to make a .COM file out of it. So I >was wondering if anybody could send me the source for a .COM file that >displays "Hello, World!" on the screen. Thanx in advance. > >- om...@inforamp.net Here ya go! model tiny .code org 100h start: mov dx,offset msg ;get offset of msg mov ah,9 ;Dos function code to print int 21h ; Do print mov ax,4c00h ; Dos exit function code int 21h ; End program msg: db "Hello World!",10,13,'$' ; The message end start
Re: NEWBIE HERE NEEDS HELP!!
Author: fd...@flowbee.in
Date: Wed, 03 Jan 1996 00:00
Date: Wed, 03 Jan 1996 00:00
49 lines
1845 bytes
1845 bytes
Erno Csanyi (om...@inforamp.net) wrote: : Hi, All! : This is my first time in this newsgroup and I know only 1 thing in ASM: How to : print things on the screen. But I'm trying to make a .COM file out of it. So I : was wondering if anybody could send me the source for a .COM file that : displays "Hello, World!" on the screen. Thanx in advance. No prob, here you go: _TEXT segment byte public assume cs:_TEXT,ds:_TEXT,es:_TEXT,ss:_TEXT org 0100h jumps Start: jmp Realstart ;########################################################################### ;############################# START DATA HERE ############################# ;########################################################################### MESSAGE DB "Hello World!",13,10,24h ;########################################################################### ;########################### END DATA, START CODE ########################## ;########################################################################### Realstart: mov ah,09 ;select service 9 lea dx,message ;load offset of message into dx int 21h ;display text with int 21 ;################################ Procedures ############################### ;################################# END CODE ################################ Exit: ; end program here mov ax,4c00h ; service 4ch int 21h ; int. 21 terminate program ENDS END Start This is the most simplistic way. If you really want to get complicated, you can write it directly to the video memory, which is infinately faster than a DOS interrupt, but also more complicated. Hope this helps. Chris fd...@interaccess.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads