diff --git a/doc/sample/Person.iasm b/doc/sample/Person.iasm index b55f3a6..9d10f67 100644 --- a/doc/sample/Person.iasm +++ b/doc/sample/Person.iasm @@ -155,16 +155,16 @@ ldr x1, [bp, #-2] ldr x2, [pool, #4] - cmp x1, x2 - b.eq L0001 + c.eq x1, x2 + br.t L0001 ldr x2, [pool, #5] - cmp x1, x2 - b.eq L0002 + c.eq x1, x2 + br.t L0002 ldr x2, [pool, #6] - cmp x1, x2 - b.eq L0003 + c.eq x1, x2 + br.t L0003 ldr x0, #0 str x0, [self, #1] @@ -191,16 +191,16 @@ L0004: ldr x1, [bp, #-1] ; x1 = units ldr x2, [pool, #4] ; x2 = #years - cmp x1, x2 - b.eq L0001 ; [jump] if units == #years + c.eq x1, x2 + br.t L0001 ; [jump] if units == #years ldr x2, [pool, #5] ; x2 = #months - cmp x1, x2 - b.eq L0002 ; [jump] if units == #years + c.eq x1, x2 + br.t L0002 ; [jump] if units == #years ldr x2, [pool, #6] ; x2 = #days - cmp x1, x2 - b.eq L0003 ; [jump] if units == #days + c.eq x1, x2 + br.t L0003 ; [jump] if units == #days ldr x0, #0 ; else ret ; return 0 diff --git a/doc/vm-instructions.txt b/doc/vm-instructions.txt index 6ea80ad..7d67f7a 100755 --- a/doc/vm-instructions.txt +++ b/doc/vm-instructions.txt @@ -19,8 +19,6 @@ sub mul div -cmp - c.eq c.ne c.lt @@ -29,14 +27,8 @@ c.gt c.ge br -b.z -b.nz -b.eq -b.ne -b.lt -b.le -b.gt -b.ge +br.t +br.f ob.c ob.e