Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1.         cpu     sc/mp
  2.  
  3.         ; by default, SC/MP uses C notation, i.e. the following
  4.         ; is interpreted as octal:
  5.  
  6.         ldi             044     ; 44 octal -> 36 decinal
  7.  
  8.         ; now disable the C-like octal syntax, which means parsing
  9.         ; falls back to default decimal:
  10.  
  11.         intsyntax       -0oct
  12.         ldi             044     ; 44 decimal
  13.  
  14.         ; now, enable the National-specific hex syntax with leading zero:
  15.  
  16.         intsyntax       +0hex
  17.         ldi             044     ; 44 hex -> 68 decimal
  18.  
  19.         ; C-octal and National-hex cannot be enabled at once:
  20.  
  21.         expect  2231
  22.         intsyntax       +0oct
  23.         endexpect
  24.  
  25.