TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Billy O`Connor
from: Anis Ahmad
date: 1994-08-30 06:09:00
subject: Asm

BO> Instead of the PC-DOS method of setting registers and 
 BO> executing an interrupt, 
 BO> operating system services are requested by pushing the 
 BO> parameters and calling 
 BO> the operating system function you require, i.e., 

 BO> instead of:

 BO>   message  db "hello.$"

 BO>    mov dx, offset message
 BO>    mov ah,9
 BO>    int 21h

 BO> you use:
 BO>   message  db "hello.$"
 BO>   messagelength equ $-message
 BO>  
 BO>    push ds
 BO>    push offset message ;push
 BO>    push messagelength ;all
 BO>    push 0  ;parms
 BO>    call VioWrtTTY ;OS/2 write string function
 BO>    

        Thanx for replying. I have a book that covers OS/2 asm functions, I
just wanted to make sure that low-level functions worked fine.

--- Maximus 2.01wb


* Origin: The Programming BBS (613) 825-7666 825-3213 (1:163/416)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1
@PATH: 163/416 133 307 99 12/12 270/101 396/1 3615/50 229/2
@PATH: 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.