我有以下程序exitc.s:
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
If Not Shift = acCtrlMask Then
MsgBox "Enter"
KeyCode = 0
Me.parent.Combo.SetFocus
End If
End If
End Sub
通过以下方式构建:
[OP@localhost linking]$ cat exitc.s
.section .text
.globl _start
_start:
call exit
通过[OP@localhost linking]$ as exitc.s -o exitc.o
[OP@localhost linking]$ ld exitc.o -o exitc -lc -I /usr/lib64/ld-linux-x86-64.so.2
运行它时,会发生以下情况:
gdb
在组装的最后一步,为什么不发生跳跃?