Skip to content

Commit

Permalink
Fix office hour location.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Sep 3, 2024
1 parent 0458782 commit 447bf91
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 126 deletions.
198 changes: 87 additions & 111 deletions langs/hoax/compile-ops.rkt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions www/defns.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
(define AVW "AVW")
(define KEY "KEY")

(define office-hour-location (elem IRB " " "4122"))


(define m1-date "TBD")
(define m2-date "TBD")
Expand Down
2 changes: 1 addition & 1 deletion www/main.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ implement several related languages.
#;(list prof2 prof2-email)
staff)]

@bold{Office hours:} AVW 4140, Schedule TBD
@bold{Office hours:} @office-hour-location, Schedule TBD

@tabular[#:style 'boxed
#:row-properties '(bottom-border ())
Expand Down
20 changes: 6 additions & 14 deletions ziggy/src/compile-ops.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -117,32 +117,24 @@
['string? (type-pred ptr-mask type-str)]
{:> H1}
['vector-length
(let ((zero (gensym))
(done (gensym)))
(let ((end (gensym)))
(seq (assert-vector rax)
(Xor rax type-vect)
(Cmp rax 0)
(Je zero)
(Je end)
(Mov rax (Offset rax 0))
(Sal rax int-shift)
(Jmp done)
(Label zero)
(Mov rax 0)
(Label done)))]
(Label end)))]
{:> H1}
['string-length
(let ((zero (gensym))
(done (gensym)))
(let ((end (gensym)))
(seq (assert-string rax)
(Xor rax type-str)
(Cmp rax 0)
(Je zero)
(Je end)
(Mov rax (Offset rax 0))
(Sal rax int-shift)
(Jmp done)
(Label zero)
(Mov rax 0)
(Label done)))]))
(Label end)))]))


{:> F} ;; Op2 -> Asm
Expand Down

0 comments on commit 447bf91

Please sign in to comment.