increase/fix warnings
This commit is contained in:
@@ -24,6 +24,9 @@ TEST_LINE_LENGTH equ 80 ; right border of test suite results
|
|||||||
|
|
||||||
[bits 64]
|
[bits 64]
|
||||||
[org LOAD_ADDR]
|
[org LOAD_ADDR]
|
||||||
|
[default abs] ; TODO see if I actually need to do this
|
||||||
|
; afaik absolute addressing is not harmful on bare metal
|
||||||
|
; reasoning: stops annoying warning =D
|
||||||
|
|
||||||
start:
|
start:
|
||||||
mov rsp, STACK_ADDR ; we might need more stack space, let's just be safe
|
mov rsp, STACK_ADDR ; we might need more stack space, let's just be safe
|
||||||
@@ -200,7 +203,7 @@ assemble:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
; runs dec on .pending_operator_num_args
|
; runs dec on .pending_operator_num_args
|
||||||
.dec_num_args
|
.dec_num_args:
|
||||||
push rax
|
push rax
|
||||||
mov al, [.pending_operator_num_args]
|
mov al, [.pending_operator_num_args]
|
||||||
dec al
|
dec al
|
||||||
@@ -208,7 +211,7 @@ assemble:
|
|||||||
pop rax
|
pop rax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.reset_state
|
.reset_state:
|
||||||
; I don't actually know if these `word` and `byte` directives are needed
|
; I don't actually know if these `word` and `byte` directives are needed
|
||||||
; TODO check that. I think they are, becasue Nasm doesn't record the size
|
; TODO check that. I think they are, becasue Nasm doesn't record the size
|
||||||
; of labels?
|
; of labels?
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ stdenv.mkDerivation {
|
|||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
${nasm}/bin/nasm asm/main.asm -o out.bin
|
${nasm}/bin/nasm \
|
||||||
|
asm/main.asm \
|
||||||
|
-o out.bin \
|
||||||
|
-w+all \
|
||||||
|
-w-reloc-abs
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
dd if=/dev/zero of=disk bs=512 count=2880
|
dd if=/dev/zero of=disk bs=512 count=2880
|
||||||
|
|||||||
Reference in New Issue
Block a user