Skip to content

Commit f848dc6

Browse files
committed
Fix up uses of in notes to match global checking.
1 parent b414f0e commit f848dc6

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

www/notes/a86.scrbl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,14 +782,16 @@ Each register plays the same role as in x86, so for example
782782
outermost level of a function that produces a86 code and not
783783
nested.
784784

785-
@ex[
786-
(prog (Label 'foo))
787-
(prog (list (Label 'foo)))
785+
@ex[
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)