Skip to content

Commit 952524e

Browse files
committed
Fix a86 notes use of prog.
1 parent c6a1e7c commit 952524e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

www/notes/a86.scrbl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ Each register plays the same role as in x86, so for example
769769

770770
@itemlist[
771771

772-
@item{Programs have at least one label; the first label is used as the entry point.}
772+
@item{Programs have at least one label which is declared @racket[Global]; the first label is used as the entry point.}
773773
@item{All label declarations are unique.}
774774
@item{All label targets are declared.}
775775
@item{... other properties may be added in the future.}
@@ -783,13 +783,15 @@ Each register plays the same role as in x86, so for example
783783
nested.
784784

785785
@ex[
786-
(prog (Label 'foo))
787-
(prog (list (Label 'foo)))
786+
(prog (Global 'foo) (Label 'foo))
787+
(eval:error (prog (Label 'foo)))
788+
(eval:error (prog (list (Label 'foo))))
788789
(eval:error (prog (Mov 'rax 32)))
789790
(eval:error (prog (Label 'foo)
790791
(Label 'foo)))
791792
(eval:error (prog (Jmp 'foo)))
792-
(prog (Label 'foo)
793+
(prog (Global 'foo)
794+
(Label 'foo)
793795
(Jmp 'foo))
794796
]
795797
}
@@ -807,7 +809,8 @@ Each register plays the same role as in x86, so for example
807809
@#reader scribble/comment-reader
808810
(ex
809811
(asm-display
810-
(prog (%%% "Start of foo")
812+
(prog (Global 'foo)
813+
(%%% "Start of foo")
811814
(Label 'foo)
812815
; Racket comments won't appear
813816
(%% "Inputs one argument in rdi")

0 commit comments

Comments
 (0)