@@ -62,15 +62,12 @@ struct eval_t eval_tab[] = {
6262 { "- (unary)" ,eval_1arg },
6363 { "~" , eval_1arg },
6464 { ".word" , eval_word },
65- { ".lbyte" , eval_word },
66- { ".rbyte" , eval_word },
6765 { ".dword" , eval_multiword },
6866 { ".float" , eval_multiword },
6967 { ".res" , eval_res },
7068 { ".org" , eval_org },
7169 { ".ascii" , eval_string },
7270 { ".asciiz" ,eval_string },
73- { ".r40" , eval_r40 },
7471 { ".entry" , eval_entry },
7572 { ".global" ,eval_global },
7673 { ".ifdef" , eval_ifdef },
@@ -308,20 +305,6 @@ int eval_word(struct st *t)
308305 }
309306 t -> val = t -> args -> val ;
310307 break ;
311- case N_RBYTE :
312- if ((t -> args -> val < 0 ) || (t -> args -> val > 255 )) {
313- aaerror (t , "Value %i is not an 8-bit unsigned integer" , t -> args -> val );
314- return -1 ;
315- }
316- t -> val = t -> args -> val ;
317- break ;
318- case N_LBYTE :
319- if ((t -> args -> val < 0 ) || (t -> args -> val > 255 )) {
320- aaerror (t , "Value %i is not an 8-bit unsigned integer" , t -> args -> val );
321- return -1 ;
322- }
323- t -> val = t -> args -> val << 8 ;
324- break ;
325308 }
326309
327310 t -> type = N_INT ;
@@ -471,27 +454,6 @@ int eval_string(struct st *t)
471454 return 0 ;
472455}
473456
474- // -----------------------------------------------------------------------
475- int eval_r40 (struct st * t )
476- {
477- char * s = t -> str ;
478- int chars = strlen (s );
479- int words = (chars + 2 ) / 3 ;
480-
481- t -> data = malloc (words * sizeof (uint16_t ));
482- t -> size = 0 ;
483- t -> type = N_BLOB ;
484-
485- while (words > 0 ) {
486- t -> data [t -> size ] = str2r40 (s );
487- t -> size ++ ;
488- words -- ;
489- s += 3 ;
490- }
491-
492- return 0 ;
493- }
494-
495457// -----------------------------------------------------------------------
496458int eval_label (struct st * t )
497459{
0 commit comments