/[smarc]/smarc/src/spasm/spasm.y
ViewVC logotype

Diff of /smarc/src/spasm/spasm.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by batonik, Sat Jan 4 11:20:27 2003 UTC revision 1.14 by batonik, Sat Jan 4 14:46:40 2003 UTC
# Line 575  dwa_arg:       PR_MOV rejestr PRZECINEK rejest Line 575  dwa_arg:       PR_MOV rejestr PRZECINEK rejest
575                          }                          }
576                  | PR_SET liczba PRZECINEK rejestr                  | PR_SET liczba PRZECINEK rejestr
577                          {                          {
578                                  DodajRozkaz( ZrobSetHi($4, OP_HI($2)), TAK, NULL);                                  ulint sword;
579    
580                                    if ((signed long) $2 < -4096 || $2 > 4095)
581                                    {
582                                            DodajRozkaz( ZrobSetHi($4, OP_HI($2)), TAK, NULL);
583                                            sword = OP_LO($2);
584                                    }
585                                    else
586                                            sword = ROZKAZ_IMM($2);
587                                    
588                                  DodajRozkaz( ZrobRozkaz(TYP_REGIMM, F_ALU, $4, OPC_OR,                                  DodajRozkaz( ZrobRozkaz(TYP_REGIMM, F_ALU, $4, OPC_OR,
589                                          $4, 0, OP_LO($2)), TAK, NULL);                                          $4, 0, sword), TAK, NULL);
590                          }                          }
591                  | mem_instr                  | mem_instr
592                  | R_JMPL adres_wew PRZECINEK rejestr                  | R_JMPL adres_wew PRZECINEK rejestr

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26