We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f196e3 commit b2c93c6Copy full SHA for b2c93c6
cambridge-asm/tests/extension.rs
@@ -2,7 +2,7 @@
2
extern crate cambridge_asm;
3
4
inst! {
5
- custom | ctx | override { println!("This is a custom instruction"); ctx.mar += 1; }
+ custom | ctx | override { println!("This is a custom instruction"); ctx.mar += 1; ctx.gprs[0] = 20;}
6
}
7
8
extend! {
@@ -32,4 +32,5 @@ NONE:
32
let mut e = cambridge_asm::parse::parse(PROG, get_instruction);
33
e.exec();
34
assert_eq!(e.ctx.acc, 65);
35
+ assert_eq!(e.ctx.gprs[0], 20);
36
0 commit comments