Rename TYPE to TELL
authorJonas Hvid <mail@johv.dk>
Sat, 23 Nov 2019 16:07:01 +0000 (17:07 +0100)
committerJonas Hvid <mail@johv.dk>
Sat, 23 Nov 2019 16:07:01 +0000 (17:07 +0100)
This is what jonesforth uses, so we'll use the same convention.

main.asm

index af84a66631a0d17d5abb5922a220130f9135f8b4..4ddb26785e04a419d221f986de7c3ac223321f2a 100644 (file)
--- a/main.asm
+++ b/main.asm
@@ -155,7 +155,7 @@ READ_WORD:  ; 400170
 
 ;; Takes a string (in the form of a pointer and a length on the stack) and
 ;; prints it to standard output.
-TYPE:
+TELL:
   dq .start
 .start:
   mov rbx, rsi
@@ -213,8 +213,8 @@ MAIN:
   dq READ_WORD
   dq LIT, you_typed_string
   dq LIT, you_typed_string.length
-  dq TYPE
-  dq TYPE
+  dq TELL
+  dq TELL
   dq NEWLINE
   dq HELLO
   dq TERMINATE