Skip to content

Commit

Permalink
Added ability for system calls (software interrupts!)
Browse files Browse the repository at this point in the history
  • Loading branch information
bootnecklad committed Feb 28, 2012
1 parent 11d333a commit 0a57ad4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Specifications.md
Expand Up @@ -46,16 +46,17 @@ S: Set if ALU operation stores a 2's complement negative number (high bit set).
0 0 0 1 0 1 1 0 - NOT Rs - Invert/Complement of source register
0 0 0 1 0 1 1 1 - SHR Rs - Shifts all bits right away from carry of source register(LSB fed into carry)

## Interrupt operations ##
## Interrupt/Exception operations ##

### Example: INT 0x5A ###

These are generally used as system calls, the interrupt vector addresses is stored in the EEPROM on the external address bus.
All registers are saved in a location in system memory when an interrupt is called. The interrupt will also return with an interrupt code, and the address the interrupt was called at.

Assembled:

0010 0000
ZZZZ ZZZZ
Opcode Cond
------- -------
0 0 1 0 0 0 0 0 - INT 0x5A - Calls interrupt 5A
0 0 1 0 0 0 0 0 - RTE - Return from exception/interrupt

Where ZZZZ ZZZZ is the interrupt to call.

Expand Down

0 comments on commit 0a57ad4

Please sign in to comment.