legacy-cc

The earliest versions of the very first c compiler known to exist in the wild written by the late legend himself dmr. https://github.com/mortdeus/legacy-cc
git clone http://git.hanabi.in/repos/legacy-cc.git
Log | Files | Refs | README

efftab.s (1491B)


      1 / c code tables
      2 
      3 .globl	_efftab
      4 
      5 _efftab=.;.+2
      6 	30.;	ci30
      7 	31.;	ci30
      8 	32.;	ci30	/ same as 30
      9 	33.;	ci30	/ same as 31
     10 	80.;	ci80
     11 	70.;	ci70
     12 	71.;	ci70	/ - like +
     13 	77.;	ci77
     14 	78.;	ci78
     15 	0
     16 
     17 / ++ prefix
     18 ci30:
     19 %ai,n
     20 %abp,n
     21 %ab,n
     22 	IB1	A1
     23 
     24 %aip,n
     25 	I'	$2,A1
     26 
     27 %nbp*,n
     28 %ni*,n
     29 %nb*,n
     30 	F*
     31 	IB1	#1(R)
     32 
     33 %nip*,n
     34 	F*
     35 	I'	$2,#1(R)
     36 
     37 / =
     38 ci80:
     39 %a,z
     40 	clrB1	A1
     41 
     42 %n*,z
     43 	F*
     44 	clrB1	#1(R)
     45 
     46 %a,aw
     47 	movB1	A2,A1
     48 
     49 %a,nw*
     50 	S*
     51 	movB1	#2(R),A1
     52 
     53 %a,n
     54 	S
     55 	movB1	R,A1
     56 
     57 %n*,aw
     58 	F*
     59 	movB1	A2,#1(R)
     60 
     61 %n*,ew*
     62 	F*
     63 	S1*
     64 	movB1	#2(R1),#1(R)
     65 
     66 %n*,e
     67 	F*
     68 	S1
     69 	movB1	R1,#1(R)
     70 
     71 %e*,nw*
     72 	S*
     73 	F1*
     74 	movB1	#2(R),#1(R1)
     75 
     76 %e*,n
     77 	S
     78 	F1*
     79 	movB1	R,#1(R1)
     80 
     81 %n*,nw*
     82 	FS*
     83 	S*
     84 	movB1	#2(R),*(sp)+
     85 
     86 %n*,n
     87 	FS*
     88 	S
     89 	movB1	R,*(sp)+
     90 
     91 / =| i
     92 ci78:
     93 %a,a
     94 	bisBE	A2,A1
     95 
     96 %a,n
     97 	S
     98 	bisB1	R,A1
     99 
    100 %n*,a
    101 	F*
    102 	bisBE	A2,#1(R)
    103 
    104 %e*,n*
    105 	S*
    106 	F1*
    107 	bisBE	#2(R),#1(R1)
    108 
    109 %e*,n
    110 	S
    111 	F1*
    112 	bisBE	R,#1(R1)
    113 
    114 %n*,e*
    115 	F*
    116 	S1*
    117 	bisBE	#2(R1),#1(R)
    118 
    119 %n*,e
    120 	F*
    121 	S1
    122 	bisBE	R1,#1(R)
    123 
    124 %n*,n*
    125 	FS*
    126 	S*
    127 	bisBE	#2(R),*(sp)+
    128 
    129 %n*,n
    130 	FS*
    131 	S
    132 	bisBE	R,*(sp)+
    133 
    134 / =& i
    135 ci77:
    136 %a,c
    137 	bicB1	$!C2,A1
    138 
    139 %a,n
    140 	S
    141 	com	R
    142 	bicB1	R,A1
    143 
    144 %e*,n
    145 	S
    146 	F1*
    147 	com	R
    148 	bicB1	R,#1(R1)
    149 
    150 %n*,c
    151 	F*
    152 	bicB1	$!C2,#1(R)
    153 
    154 %n*,e
    155 	F*
    156 	S1
    157 	com	R1
    158 	bicB1	R1,#1(R)
    159 
    160 %n*,n
    161 	FS*
    162 	S
    163 	com	R
    164 	bicB1	R,*(sp)+
    165 
    166 / =+
    167 ci70:
    168 %aw,aw
    169 	I	A2,A1
    170 
    171 %aw,nw*
    172 	S*
    173 	I	#2(R),A1
    174 
    175 %aw,n
    176 	S
    177 	I	R,A1
    178 
    179 %ew*,nw*
    180 	S*
    181 	F1*
    182 	I	#2(R),#1(R1)
    183 
    184 %a,nw*
    185 	S*
    186 	movB1	A1,R1
    187 	I	#2(R),R1
    188 	movB1	R1,#2(R)
    189 
    190 %a,n
    191 	S
    192 	movB1	A1,R1
    193 	I	R1,R
    194 	movB1	R,A1
    195 
    196 %ew*,n
    197 	S
    198 	F1*
    199 	I	R,#1(R1)
    200 
    201 %nw*,n
    202 	SS
    203 	F*
    204 	I	(sp)+,#1(R)
    205 
    206 %n*,n
    207 	SS
    208 	F*
    209 	movB1	#1(R),R1
    210 	I	(sp)+,R1
    211 	movB1	R1,#1(R)
    212 
    213 .data
    214 .even
    215