fixed parameter types

This commit is contained in:
ceriel 1989-01-20 15:01:37 +00:00
parent b1b4ba9677
commit 1c570328f0
15 changed files with 24 additions and 24 deletions

View file

@ -1,7 +1,7 @@
#include "header.h"
con1( w)
arith w;
ONE_BYTE w;
{
gen1( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
con2( w)
arith w;
TWO_BYTES w;
{
gen2( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
con4( w)
arith w;
FOUR_BYTES w;
{
gen4( w);
}

View file

@ -1,14 +1,14 @@
#include "header.h"
gen1( w)
arith w;
ONE_BYTE w;
{
switch ( cur_seg) {
case SEGTXT : fprint( codefile, BYTE_FMT, (arith) w);
case SEGTXT : fprint( codefile, BYTE_FMT, (long) w);
break;
case SEGCON : fprint( codefile, BYTE_FMT, (arith) w);
case SEGCON : fprint( codefile, BYTE_FMT, (long) w);
break;
case SEGROM : fprint( codefile, BYTE_FMT, (arith) w);
case SEGROM : fprint( codefile, BYTE_FMT, (long) w);
break;
case SEGBSS : bss( (arith) 1);
break;

View file

@ -1,14 +1,14 @@
#include "header.h"
gen2( w)
arith w;
TWO_BYTES w;
{
switch ( cur_seg) {
case SEGTXT : fprint( codefile, WORD_FMT, (arith) w);
case SEGTXT : fprint( codefile, WORD_FMT, (long) w);
break;
case SEGCON : fprint( codefile, WORD_FMT, (arith) w);
case SEGCON : fprint( codefile, WORD_FMT, (long) w);
break;
case SEGROM : fprint( codefile, WORD_FMT, (arith) w);
case SEGROM : fprint( codefile, WORD_FMT, (long) w);
break;
case SEGBSS : bss( (arith) 2);
break;

View file

@ -1,14 +1,14 @@
#include "header.h"
gen4( w)
arith w;
FOUR_BYTES w;
{
switch ( cur_seg) {
case SEGTXT : fprint( codefile, LONG_FMT, (arith) w);
case SEGTXT : fprint( codefile, LONG_FMT, (long) w);
break;
case SEGCON : fprint( codefile, LONG_FMT, (arith) w);
case SEGCON : fprint( codefile, LONG_FMT, (long) w);
break;
case SEGROM : fprint( codefile, LONG_FMT, (arith) w);
case SEGROM : fprint( codefile, LONG_FMT, (long) w);
break;
case SEGBSS : bss( (arith) 4);
break;

View file

@ -5,5 +5,5 @@ char *s;
arith o;
int r;
{
fprint( codefile, RELOC1_FMT, s, (arith) o);
fprint( codefile, RELOC1_FMT, s, (long) o);
}

View file

@ -5,5 +5,5 @@ char *s;
arith o;
int r;
{
fprint( codefile, RELOC2_FMT, s, (arith) o);
fprint( codefile, RELOC2_FMT, s, (long) o);
}

View file

@ -5,5 +5,5 @@ char *s;
arith o;
int r;
{
fprint( codefile, RELOC4_FMT, s, (arith) o);
fprint( codefile, RELOC4_FMT, s, (long) o);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
rom1( w)
arith w;
ONE_BYTE w;
{
gen1( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
rom2( w)
arith w;
TWO_BYTES w;
{
gen2( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
rom4( w)
arith w;
FOUR_BYTES w;
{
gen4( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
text1( w)
arith w;
ONE_BYTE w;
{
gen1( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
text2( w)
arith w;
TWO_BYTES w;
{
gen2( w);
}

View file

@ -1,7 +1,7 @@
#include "header.h"
text4( w)
arith w;
FOUR_BYTES w;
{
gen4( w);
}