P3 Assembly
A Sublime Text 3 assembly language syntax
Details
Installs
- Total 8K
- Win 4K
- Mac 1K
- Linux 2K
Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 4 | 0 | 0 | 2 | 2 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 2 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
P3 Assembly
A Sublime Text 3 assembly language syntax
Sidenote: Designed to accomodate the syntax of the P3 processor's assembly language, this theme is in no way a finished product. Feel free to contribute to the project or submit an issue detailing a problem with the project or what have you.
Still on a tangent, a color theme is not supplied with this package. It is purely a syntax for the P3 assembly language.
The P3 Processor
The P3 is a 16-bit word architecture processor used at Lisbon University's Superior Technical Institute (Instituto Superior Técnico da Universidade de Lisboa, IST@UL) in the Introduction to Computer Architecture subject of the Computer Science and Engineering BSc degree.
In practice, during the course's subject, a project is tailored for the first year's first semester students (freshmen, hopefully). Usually, or at least thus far, the project consists of creating a well-known game (or should I say recreating) using the P3 processor simulator, a Java application capable of simulating the assembled code to be loaded onto the processor itself on a later stage, during a demo or for testing purposes, since the simulator's.. not very feasible or reliable, if I may.
Some specifications
A few of the processor's specifications are listed below.
1. Registers
R0 - R7
- General use registers (R0
holds the constant0
)PC
- The program counterSP
- The stack pointerRE
- State register with 5 state bits, EZCNO, whereE
: Enable interruptsZ
: ZeroC
: CarryN
: NegativeO
: Overflow
2. Memory
- Address space: 64K words
- Word size: 16 bits
3. I/O
- I/O Addresses: Memory Mapped I/O from
FF00h
upward - Text Window:
FFFCh - FFFFh
- Interruptors (or switches):
FFF9h
- LEDs:
FFF8h
- LCD:
FFF4h - FFF5h
- 7-Segment display:
FFF0h - FFF3h
- Timer:
FFF6h - FFF7h
4. Interrupts
- Interrupt mask:
FFFAh
- Interrupt vector base:
FE00h
More information can be found in the P3 processor simulator manual here (in portuguese).