Przeglądaj źródła

Add parts/platforms

pull/10/head
Virgil Dupras 5 lat temu
rodzic
commit
89e4edfa52
4 zmienionych plików z 13 dodań i 8 usunięć
  1. +5
    -0
      parts/platforms/README.md
  2. +5
    -0
      parts/platforms/rc2014.inc
  3. +1
    -7
      parts/shell/shell.asm
  4. +2
    -1
      recipes/rc2014.md

+ 5
- 0
parts/platforms/README.md Wyświetl plik

@@ -0,0 +1,5 @@
# platforms

This is a collection of include files that set platform-specific constants
that different parts use. When assembling your own OS, pick the platform include
that is closest to yours and adapt it to your machine.

+ 5
- 0
parts/platforms/rc2014.inc Wyświetl plik

@@ -0,0 +1,5 @@
; classic RC2014 setup (8K ROM + 32K RAM) and a stock Serial I/O module

RAMEND .equ 0xa000
ACIA_CTL .equ 0x80 ; Control and status. RS off.
ACIA_IO .equ 0x81 ; Transmit. RS on.

+ 1
- 7
parts/shell/shell.asm Wyświetl plik

@@ -5,13 +5,7 @@
; *** STATUS ***
; Incomplete. This just outputs the welcome prompt then halts

; *** PLATFORM ***
; this is specific to a classic RC2014 setup (8K ROM + 32K RAM). This will be
; reorganized into something better.

RAMEND .equ 0xa000
ACIA_CTL .equ 0x80 ; Control and status. RS off.
ACIA_IO .equ 0x81 ; Transmit. RS on.
#include "platform.inc"

; *** CONSTS ***
CR .equ 0x0d


+ 2
- 1
recipes/rc2014.md Wyświetl plik

@@ -31,7 +31,8 @@ device I use in this recipe.

### Gathering parts

* `shell.asm` from `parts`
* `parts/platforms/rc2014.inc` as `platform.inc`
* `parts/shell/shell.asm` as `shell.asm`
* [scas][scas]
* [romwrite][romwrite] and its specified dependencies
* [GNU screen][screen]


Ładowanie…
Anuluj
Zapisz