From 1639687ba098aa81b0584f7dd609cb9690dc5a04 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 14 Feb 2019 16:24:20 -0800 Subject: 4961 --- subx/069allocate.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx/069allocate.subx') diff --git a/subx/069allocate.subx b/subx/069allocate.subx index 37b01d21..1d9e043a 100644 --- a/subx/069allocate.subx +++ b/subx/069allocate.subx @@ -164,7 +164,7 @@ allocate-region: # ad : (address allocation-descriptor), n : int -> new-ad : (a e8/call allocate/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # if EAX == 0 abort + # if (EAX == 0) abort 81 7/subop/compare 3/mod/direct 0/rm32/EAX . . . . . 0/imm32 # compare EAX 74/jump-if-equal $allocate-region:abort/disp8 # earmark 8 bytes at the start for a new allocation descriptor -- cgit 1.4.1-2-gfad0 chine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/tutorial/task10-hint2.mu
blob: 97ccfc51332d58d40a0b1e3b5f1fd95545664029 (plain) (tree)