14 lines
166 B
ArmAsm
14 lines
166 B
ArmAsm
.main
|
|
test $1, %ax # ax should be 1 (signaller) or 0 (waiter)
|
|
je .signaller
|
|
|
|
.waiter
|
|
mov 2000, %cx
|
|
test $1, %cx
|
|
jne .waiter
|
|
halt
|
|
|
|
.signaller
|
|
mov $1, 2000
|
|
halt
|