?login_element?

Subversion Repositories NedoOS

Rev

Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download

  1. ; SYNTAX options "M":
  2. ;   m - removed in v1.20.0, use `-Wno-rdlow` instead
  3. ;   M      Alias "m" and "M" for "(hl)" to cover 8080-like syntax: ADD A,M
  4.  
  5. ; verify regular syntax works as expected with default options
  6.     add     a,m                 ; label not found
  7.     add     a,(hl)              ; regular add instruction
  8.     OPT push --syntax=M     ; test the syntax options "M"
  9.     add     a,m                 ; (hl) used
  10.     add     a,M                 ; (hl) used
  11.     add     a,(hl)              ; regular add instruction
  12.     OPT pop                 ; test push+pop of new options
  13.     add     a,M                 ; label not found
  14.     add     a,(hl)              ; regular add instruction
  15.     ASSERT _WARNINGS == 0 && _ERRORS == 2
  16.