From b692eba9f5e3476797655dae73ebb1a7851a527f Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 21 Aug 2018 07:02:37 +0200 Subject: [PATCH] explicitly check origin --- main.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.asm b/main.asm index aa5b52f..d17ee63 100644 --- a/main.asm +++ b/main.asm @@ -16,8 +16,9 @@ base 0x80000000 include "header.asm" insert "bin/6102.bin" -// after inserting the header and bootrom, -// origin should be at 0x1000. +if origin() != 0x1000 { + error "bad header or bootcode; combined sized should be exactly 0x1000" +} include "kernel.asm"