aforth

FORTH for Linux x86-64, written in assembly.
git clone git://henryandlizzy.uk/aforth
Log | Files | Refs | README

commit 3588d80886dabf28e9fefa58f556fc2fdd329268
parent d7a24243607b8d161eada6cd9b5c15f9996abb02
Author: Henry Wilson <m3henry@googlemail.com>
Date:   Sun, 11 Jun 2017 02:11:18 +0100

tabs

Diffstat:
Mmain.s | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/main.s b/main.s @@ -88,10 +88,10 @@ _drop: mov (SP), TOS emit: codeword movq TOS, buff - mov $1, %rax # system call 1 is write - mov $1, %rdi # file handle 1 is stdout - mov $buff, %rsi # address of string to output - mov $1, %rdx # number of bytes + mov $1, %rax # system call 1 is write + mov $1, %rdi # file handle 1 is stdout + mov $buff, %rsi # address of string to output + mov $1, %rdx # number of bytes syscall jmp _drop @@ -100,10 +100,10 @@ cr: codeword jmp next newl: .ascii "\n\r" _cr: - mov $1, %rax - mov $1, %rdi - mov $newl, %rsi - mov $2, %rdx + mov $1, %rax + mov $1, %rdi + mov $newl, %rsi + mov $2, %rdx syscall ret