From 35a5a9ada2fda8f5d9fd8ec8fa75a6526cdb5742 Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Mon, 22 May 2023 22:33:00 +0100 Subject: [PATCH] Added more data to a test program --- boot_code/gnome_sort.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boot_code/gnome_sort.asm b/boot_code/gnome_sort.asm index 38c06e9..5800ae6 100644 --- a/boot_code/gnome_sort.asm +++ b/boot_code/gnome_sort.asm @@ -5,7 +5,7 @@ mov sp,#STACK MOV SI,#DATA GNOME_SORT: -CMP SI,#DATA+7 +CMP SI,#DATA+31 JZ GNOMED MOV AX,[SI] INC SI @@ -29,7 +29,7 @@ PRINT_LOOP: MOV AL,[SI] call PRINT_0_8_HEX INC SI -CMP SI,#DATA+8 +CMP SI,#DATA+32 JNZ PRINT_LOOP MOV AH,#0x02 @@ -39,6 +39,9 @@ INT #0x21 hlt DATA: DB 0x51, 0x17, 0x37, 0x5d, 0x06, 0x3f, 0x51, 0x8b + DB 0xa5, 0x33, 0x54, 0xdf, 0xae, 0xee, 0x3a, 0x18 + DB 0xe9, 0xdb, 0x1f, 0x21, 0x44, 0x4f, 0x99, 0x09 + DB 0x2a, 0x23, 0x82, 0x4f, 0x52, 0xf1, 0xdc, 0x0b .BLKB 200 STACK: