From 19475eb2d8c8048798b6f0f1f696f256414baaef Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Date: Thu, 14 Aug 2014 06:07:58 +0100 Subject: [PATCH] Make it standard --- zx-brainfuck/main.asm | 7 +++---- zx-brainfuck/main.tap | Bin 518 -> 519 bytes 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/zx-brainfuck/main.asm b/zx-brainfuck/main.asm index 93ad9dd..3897b79 100644 --- a/zx-brainfuck/main.asm +++ b/zx-brainfuck/main.asm @@ -196,16 +196,15 @@ SKIP_LOOP_2 ld (branch_count), a cp $0 jr nz, SKIP_LOOP_2 - jp continue ; ------------------------------------- F_JMP_BCK pop de ; Set the source_position as the last - ld (source_pos), de ; "[" position saved on the stack - jp main ; Jump to main so that it doesn't increment - ; the source_position + dec de ; "[" position saved on the stack + ld (source_pos), de ; minus 1 + jp continue ; The continue label increments it ; ------------------------------------- diff --git a/zx-brainfuck/main.tap b/zx-brainfuck/main.tap index f1ddd81cbc2f0aaba3b28428a01ceb51d0903a20..a92fc0b224a20315e736ac6168340a4466a3e573 100644 GIT binary patch delta 29 lcmZo;X=j;`$I-`VP|DE2Ibma22P3ES+u*~chd-At0|1c`3x)sy delta 28 kcmZo?X=9m?$I;7ZP|DE2)xWW