Some help translating some asm to C
- From: "Kev" <jaythenotsosilent@xxxxxxxxx>
- Date: 27 Jan 2007 17:10:24 -0800
I am trying to translate as much assembly into C as possible in a
module for an OS.
; ****************************************************
; ***** The following equates must be set to 100H ***
; ***** + the addresses specified in LOADER.PRN ***
; ***** ***
equ1 equ rsxstart ;does this adr match loader's?
equ2 equ fixchain ;does this adr match loader's?
equ3 equ fixchain1 ;does this adr match loader's?
equ4 equ fixchain2 ;does this adr match loader's?
equ5 equ rsx$chain ;does this adr match loader's?
equ6 equ reloc ;does this adr match loader's?
equ7 equ calcdest ;does this adr match loader's?
equ8 equ scbaddr ;does this adr match loader's?
equ9 equ banked ;does this adr match loader's?
equ10 equ rsxend ;does this adr match loader's?
equ11 equ ccporg ;does this adr match loader's?
equ12 equ ccpend ;This should be 0D80h
rsxstart equ 0100h
fixchain equ 01D0h
fixchain1 equ 01EBh
fixchain2 equ 01F0h
rsx$chain equ 0200h
reloc equ 02CAh
calcdest equ 030Fh
scbaddr equ 038Dh
banked equ 038Fh
rsxend equ 0394h
ccporg equ 041Ah
org ccporg ;LOADER is at 100H to 3??H
So far I got this:
// The following equates must be set to 100H + the
// address specified in loader.prn
int *equ1 = rsxstart;
int *equ2 = fixchain;
int *equ3 = fixchain1;
int *equ4 = fixchain2;
int *equ5 = rsx$chain;
int *equ6 = reloc;
int *equ7 = calcdest;
int *equ8 = scbaddr;
int *equ9 = banked;
int *equ10 = rsxend;
int *rsxstart = 0x0100;
int *fixchain = 0x01d0;
int *fixchain1 = 0x01eb;
int *fixchain2 = 0x01f0;
int *rsx$chain = 0x0200;
int *reloc = 0x02ca;
int *calcdest = 0x030f;
int *scbaddr = 0x038d;
int *banked = 0x038f;
int *rsxend = 0x0394;
int *ccporg = 0x041a;
I don't know what the C equivelent of the opt command is. Am I
translating this correctly? Thanks in advance for your help.
.
- Follow-Ups:
- Re: Some help translating some asm to C
- From: vid512@xxxxxxxxx
- Re: Some help translating some asm to C
- Prev by Date: Re: Merge sort
- Next by Date: Re: Some help translating some asm to C
- Previous by thread: Moore's law resuccitated
- Next by thread: Re: Some help translating some asm to C
- Index(es):
Relevant Pages
|