Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpbm committed Apr 24, 2024
1 parent 7684799 commit e952ad5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bootloader-test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

all: run

boot.bin: bootloader.asm
nasm -f bin -o boot.bin $<

floopy.img: boot.bin
dd if=/dev/zero of=floopy.img count=2880 bs=512
dd if=boot.bin of=floopy.img bs=512 count=1 conv=notrunc

run: floopy.img
qemu-system-x86_64 -drive format=raw,file=floopy.img

.PHONY: clean
clean:
rm -rf *.img *.bin
6 changes: 6 additions & 0 deletions risc-v/sum.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
main:
li s2, 15
li s3, 9


add s4, s2, s3
9 changes: 9 additions & 0 deletions sum_vector.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

section .text

global __start

__start:

mov eax, 1
int 0x80

0 comments on commit e952ad5

Please sign in to comment.