本帖最后由 Cheney辰星 于 2020-11-1 11:50 编辑
师傅们,有没有会IBM s390架构指令的,或者有没有资料之类的。
类似这种:
[C] 纯文本查看 复制代码 1000b52: b2 4f 00 11 ear %r1,%a1
1000b56: d2 07 b0 d8 10 28 mvc 216(8,%r11),40(%r1)
1000b5c: c0 20 00 03 82 84 larl %r2,0x1071064 //Please input your string:
1000b62: c0 e5 00 00 40 43 brasl %r14,0x1008be8 //加载函数地址0x1008be8 打印函数地址
1000b68: ec 1b 00 a6 00 d9 aghik %r1,%r11,166
1000b6e: b9 04 00 31 lgr %r3,%r1
1000b72: c0 20 00 03 82 87 larl %r2,0x1071080 // %s 准备读取输入
1000b78: c0 e5 00 00 3a 5c brasl %r14,0x1008030 //调用 读取输入函数
1000b7e: ec 1b 00 a6 00 d9 aghik %r1,%r11,166
1000b84: b9 04 00 21 lgr %r2,%r1
1000b88: c0 e5 ff ff fe c4 brasl %r14,0x1000910 //调用1
1000b8e: b9 04 00 12 lgr %r1,%r2
1000b92: 12 11 ltr %r1,%r1
1000b94: a7 84 00 17 je 0x1000bc2 // 不通过跳转失败
1000b98: ec 1b 00 a6 00 d9 aghik %r1,%r11,166
1000b9e: b9 04 00 21 lgr %r2,%r1
1000ba2: c0 e5 ff ff ff 33 brasl %r14,0x1000a08 //调用2
1000ba8: b9 04 00 12 lgr %r1,%r2
1000bac: 12 11 ltr %r1,%r1
1000bae: a7 84 00 0a je 0x1000bc2 //不通过跳转失败
1000bb2: c0 20 00 03 82 69 larl %r2,0x1071084 //You win!
1000bb8: c0 e5 00 00 40 18 brasl %r14,0x1008be8
1000bbe: a7 f4 00 08 j 0x1000bce
1000bc2: c0 20 00 03 82 66 larl %r2,0x107108e //You lose!
1000bc8: c0 e5 00 00 40 10 brasl %r14,0x1008be8
1000bce: a7 18 00 00 lhi %r1,0
1000bd2: b9 14 00 11 lgfr %r1,%r1
|