2016-03-28 10:30:55 -04:00
|
|
|
export
|
2015-09-18 12:27:50 -04:00
|
|
|
function $test() {
|
2015-09-14 18:06:29 -04:00
|
|
|
@start
|
2015-08-24 18:09:28 -04:00
|
|
|
%x =l alloc16 16
|
|
|
|
%y =l add %x, 8
|
|
|
|
%m =w rem %y, 16
|
|
|
|
storew %m, %y
|
2015-11-04 18:39:20 -05:00
|
|
|
%n =w loadw %y
|
2015-08-24 18:09:28 -04:00
|
|
|
storew %n, $a
|
|
|
|
ret
|
2015-09-07 22:11:43 -04:00
|
|
|
}
|
2016-03-03 11:55:13 -05:00
|
|
|
|
|
|
|
# >>> driver
|
|
|
|
# extern void test(void);
|
|
|
|
# int a;
|
|
|
|
# int main() { test(); return !(a == 8 || a == -8); }
|
|
|
|
# <<<
|