Browse Source

WIP code

master
Stephen 1 year ago
parent
commit
5c1a080014
5 changed files with 32 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +5
    -0
      Makefile
  3. +17
    -0
      bios.s
  4. +3
    -0
      drivers/screen.s
  5. +6
    -0
      timer.s

+ 1
- 0
.gitignore View File

@ -4,6 +4,7 @@
*.ko
*.obj
*.elf
*.bin
# Precompiled Headers
*.gch


+ 5
- 0
Makefile View File

@ -0,0 +1,5 @@
bios.bin: bios.o
m68k-elf-ld --oformat binary -Ttext=0x0 -o bios.bin bios.o
bios.o: bios.s timer.s
m68k-elf-as -mcpu=68000 -o bios.o bios.s

+ 17
- 0
bios.s View File

@ -0,0 +1,17 @@
.global _start
/* Vectors */
.long 0 /* Reset SSP - TODO */
.long _start /* Reset vector */
.org 0x100
.long timer /* Timer vector */
.org 0x400
/*
This subroutine runs on first boot, or
when the device is reset
*/
_start:
MOVE.L #0xDEADBEEF, %A0
.include "timer.s"

+ 3
- 0
drivers/screen.s View File

@ -0,0 +1,3 @@
/*
This is a driver for the 240x64 display on the unit
*/

+ 6
- 0
timer.s View File

@ -0,0 +1,6 @@
/*
This function runs at roughly 386Hz, if interrupts are enabled
The exact rate is 8MHz/(12^4)
*/
timer:

Loading…
Cancel
Save