简体   繁体   中英

Get error: invalid combination of opcodes and operands when push bl

I get the message error: invalid combination of opcodes and operands from nasm when doing

push bl

This code looks perfectly valid to me so why do I get this error?

There's no PUSH reg8 instruction on the x86. Push the corresponding 16- or 32-bit register instead ( bx or ebx ). See page 4-265 in Intel's Software Developer's Manual Vol 2.

Alternatively you could use sub and mov to store bytes on the stack if you really need to place a series of bytes on the stack without any space in between them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM