Added CSA ==4 and CSB ==4 entries, needed for ANSI C

This commit is contained in:
ceriel 1989-10-25 17:21:52 +00:00
parent 13ea4896b0
commit a5b0790d96
2 changed files with 17 additions and 0 deletions

View file

@ -43,6 +43,9 @@ con_mult(sz) word sz; {
#define CODE_GENERATOR
#define IEEEFLOAT
#define FL_MSL_AT_LOW_ADDRESS 0
#define FL_MSW_AT_LOW_ADDRESS 0
#define FL_MSB_AT_LOW_ADDRESS 0
#include <con_float>
/*

View file

@ -2848,23 +2848,37 @@ with BXREG ACC
kills ALL
gen jmp {label, ".csa2"}
pat csa $1==4
with BXREG ACC DXREG
kills ALL
gen jmp {label, ".csa4"}
/*
pat csa !defined($1)
with rm-BXREG-ACC ACC
kills ALL
gen cmp %1,{ANYCON,2}
jne {label, ".unknown"}
jmp {label, ".csa2"}
*/
pat csb $1==2
with BXREG ACC
kills ALL
gen jmp {label, ".csb2"}
pat csb $1==4
with BXREG ACC DXREG
kills ALL
gen jmp {label, ".csb4"}
/*
pat csb !defined($1)
with rm-BXREG-ACC BXREG ACC
gen cmp %1,{ANYCON,2}
jne {label, ".unknown"}
jmp {label, ".csb2"}
*/
pat dup $1==2
with anyreg yields %1 %1