ComputerParameterMode.js 405 B

12345678910111213141516
  1. module.exports = {
  2. /**
  3. * Position Mode
  4. *
  5. * When the int computer is in Position mode, the value at the pointer
  6. * is interpretted as another address in memory.
  7. */
  8. POSITION_MODE: 0,
  9. /**
  10. * Immediate Mode
  11. *
  12. * When the int computer is in Immediate Mode, the value at the pointer
  13. * is interpretted as its literal value.
  14. */
  15. IMMEDIATE_MODE: 1,
  16. };