?login_element?

Subversion Repositories NedoOS

Rev

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

  1.     OUTPUT "op_80_BF.bin"
  2.  
  3.     ;;; generate all 80..BF instructions
  4.     LUA ALLPASS
  5.         instructions = { 'add', 'adc', 'sub', 'sbc', 'and', 'xor', 'or', 'cp' }
  6.         registers = { 'b', 'c', 'd', 'e', 'h', 'l', '(hl)', 'a' }
  7.         for ii = 1, #instructions do
  8.             for rr = 1, #registers do
  9.                 instruction = instructions[ii]..' '..registers[rr]
  10.                 _pc(instruction)
  11.             end
  12.         end
  13.     ENDLUA
  14.