Skip to content

Commit

Permalink
use multiline asm syntax on asm_labels test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanJPNM committed Mar 17, 2024
1 parent 12a9b86 commit adc3da1
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions compiler/test/in/asm_labels.js
Expand Up @@ -7,15 +7,17 @@ while (true) {
}

function foo(counter) {
asm`print ${counter}`;
asm`jump foo always`;
asm`foo:`;
asm`printflush message1`;
asm`
print ${counter}
jump foo always
foo:
printflush message1`;
}

function bar(counter) {
asm`print ${counter}`;
asm`jump bar always`;
asm`bar:`;
asm`printflush message1`;
asm`
print ${counter}
jump bar always
bar:
printflush message1`;
}

0 comments on commit adc3da1

Please sign in to comment.