🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.asm
Article #140

Converting to 32bit

#140
From: Tim Triemstra
Date: Thu, 17 Dec 1992 23:27
55 lines
1488 bytes
I have this little bit of source code I need to convert to 32bit format. 
Is there a general rule (or better yet, a utility/parser) for doing
this?  I program in Zortech C++ and it uses the MASM 5.1 assembler
natively.  I have alot of GREAT TASM code for 16bit that I would
like to use, but without the use of the 32bit and DOS extender I'm
not sure how.  Here is some code that I'm trying to convert to the
32bit X model.  Any suggestions/ideas?  I've tried a compiler dump
to ASM but the dumped ASM isn't even compilable so I can't really use
it as a goal.  Welp, here it is:

;
; Reset routine for Soundblaster
;
; NOTE:   IO address and IRQ number are set in this file
;	  DMA channel is assumed to be channel 1
;
    .model large,C
    locals
 
public InitSB, IOaddr, IRQ
 
.data
IOaddr	dw	220h
IRQ	dw	5
 
.code
InitSB	proc
    mov al,1
    mov dx,IOaddr
    add dx,6
    out dx,al
    in	al,dx
    in	al,dx
    in	al,dx
    in	al,dx
    mov al,0
    out dx,al
    add dx,4
    mov cx,100
@@1:
    in al,dx
    cmp al,0AAh
    je @@2
    loop @@1
    mov  ax,1
    ret
@@2:
    mov ax,0
    ret
InitSB	endp
    end

Any ides for making it MASM 32bit?  Thanks.
Tim.
empath@ais.org
Technical Details
Message-ID: <BzFFuK.MAp@ais.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!destroyer!ais.org!empath

Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.asm
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!destroyer!ais.org!empath
From: empath@ais.org (Tim Triemstra)
Subject: Converting to 32bit
Message-ID: <BzFFuK.MAp@ais.org>
Organization: UMCC
Date: Thu, 17 Dec 1992 23:27:54 GMT
Lines: 56