Browse Source

Added very basic test

master
Stephen 1 year ago
parent
commit
9f5dc895de
2 changed files with 26 additions and 2 deletions
  1. +4
    -2
      debug/Makefile
  2. +22
    -0
      debug/basic_test.s

+ 4
- 2
debug/Makefile View File

@ -1,5 +1,7 @@
timer_test.bin: timer_test.o
m68k-elf-ld --oformat binary -Ttext=0x0 -o timer_test.bin timer_test.o
all: timer_test.bin basic_test.bin
%.bin: %.o
m68k-elf-ld --oformat binary -Ttext=0x0 -o $@ $<
%.o: %.s
m68k-elf-as -mcpu=68000 -o $@ $<

+ 22
- 0
debug/basic_test.s View File

@ -0,0 +1,22 @@
/*
A very basic test.
Ensures that the computer boots from the ROM,
Resets correctly, and
reads the reset vector correctly.
Does not test anything else
*/
.global _start
.long 0 /* stack pointer - doesn't matter */
.long _start
.org 0x400
_start:
/* Disable interrupts */
ORI.W #0x700, %sr
JMP LOOP
.org 0x1000
LOOP:
JMP LOOP

Loading…
Cancel
Save