fixed parameter types
This commit is contained in:
parent
b1b4ba9677
commit
1c570328f0
15 changed files with 24 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
con1( w)
|
con1( w)
|
||||||
arith w;
|
ONE_BYTE w;
|
||||||
{
|
{
|
||||||
gen1( w);
|
gen1( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
con2( w)
|
con2( w)
|
||||||
arith w;
|
TWO_BYTES w;
|
||||||
{
|
{
|
||||||
gen2( w);
|
gen2( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
con4( w)
|
con4( w)
|
||||||
arith w;
|
FOUR_BYTES w;
|
||||||
{
|
{
|
||||||
gen4( w);
|
gen4( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
gen1( w)
|
gen1( w)
|
||||||
arith w;
|
ONE_BYTE w;
|
||||||
{
|
{
|
||||||
switch ( cur_seg) {
|
switch ( cur_seg) {
|
||||||
case SEGTXT : fprint( codefile, BYTE_FMT, (arith) w);
|
case SEGTXT : fprint( codefile, BYTE_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGCON : fprint( codefile, BYTE_FMT, (arith) w);
|
case SEGCON : fprint( codefile, BYTE_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGROM : fprint( codefile, BYTE_FMT, (arith) w);
|
case SEGROM : fprint( codefile, BYTE_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGBSS : bss( (arith) 1);
|
case SEGBSS : bss( (arith) 1);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
gen2( w)
|
gen2( w)
|
||||||
arith w;
|
TWO_BYTES w;
|
||||||
{
|
{
|
||||||
switch ( cur_seg) {
|
switch ( cur_seg) {
|
||||||
case SEGTXT : fprint( codefile, WORD_FMT, (arith) w);
|
case SEGTXT : fprint( codefile, WORD_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGCON : fprint( codefile, WORD_FMT, (arith) w);
|
case SEGCON : fprint( codefile, WORD_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGROM : fprint( codefile, WORD_FMT, (arith) w);
|
case SEGROM : fprint( codefile, WORD_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGBSS : bss( (arith) 2);
|
case SEGBSS : bss( (arith) 2);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
gen4( w)
|
gen4( w)
|
||||||
arith w;
|
FOUR_BYTES w;
|
||||||
{
|
{
|
||||||
switch ( cur_seg) {
|
switch ( cur_seg) {
|
||||||
case SEGTXT : fprint( codefile, LONG_FMT, (arith) w);
|
case SEGTXT : fprint( codefile, LONG_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGCON : fprint( codefile, LONG_FMT, (arith) w);
|
case SEGCON : fprint( codefile, LONG_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGROM : fprint( codefile, LONG_FMT, (arith) w);
|
case SEGROM : fprint( codefile, LONG_FMT, (long) w);
|
||||||
break;
|
break;
|
||||||
case SEGBSS : bss( (arith) 4);
|
case SEGBSS : bss( (arith) 4);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -5,5 +5,5 @@ char *s;
|
||||||
arith o;
|
arith o;
|
||||||
int r;
|
int r;
|
||||||
{
|
{
|
||||||
fprint( codefile, RELOC1_FMT, s, (arith) o);
|
fprint( codefile, RELOC1_FMT, s, (long) o);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,5 @@ char *s;
|
||||||
arith o;
|
arith o;
|
||||||
int r;
|
int r;
|
||||||
{
|
{
|
||||||
fprint( codefile, RELOC2_FMT, s, (arith) o);
|
fprint( codefile, RELOC2_FMT, s, (long) o);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,5 @@ char *s;
|
||||||
arith o;
|
arith o;
|
||||||
int r;
|
int r;
|
||||||
{
|
{
|
||||||
fprint( codefile, RELOC4_FMT, s, (arith) o);
|
fprint( codefile, RELOC4_FMT, s, (long) o);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
rom1( w)
|
rom1( w)
|
||||||
arith w;
|
ONE_BYTE w;
|
||||||
{
|
{
|
||||||
gen1( w);
|
gen1( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
rom2( w)
|
rom2( w)
|
||||||
arith w;
|
TWO_BYTES w;
|
||||||
{
|
{
|
||||||
gen2( w);
|
gen2( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
rom4( w)
|
rom4( w)
|
||||||
arith w;
|
FOUR_BYTES w;
|
||||||
{
|
{
|
||||||
gen4( w);
|
gen4( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
text1( w)
|
text1( w)
|
||||||
arith w;
|
ONE_BYTE w;
|
||||||
{
|
{
|
||||||
gen1( w);
|
gen1( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
text2( w)
|
text2( w)
|
||||||
arith w;
|
TWO_BYTES w;
|
||||||
{
|
{
|
||||||
gen2( w);
|
gen2( w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "header.h"
|
#include "header.h"
|
||||||
|
|
||||||
text4( w)
|
text4( w)
|
||||||
arith w;
|
FOUR_BYTES w;
|
||||||
{
|
{
|
||||||
gen4( w);
|
gen4( w);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue