Error moving a constant byte value into

前端 未结 2 1509
南笙
南笙 2021-01-03 01:46

I\'m working through Computer Systems, A Programmer\'s Perspective (3rd edition), and Practice Problem 3.3 contains the following line:

movb $0xF, (         


        
2条回答
  •  礼貌的吻别
    2021-01-03 02:35

    You are right that,

    movb $-17, (%esp)         Immediate--Memory, 1 byte
    

    should not be allowed. In fact the authors have posted this as a typo. Check out their errata list (Ctrl-F for "p. 183").

提交回复
热议问题