compilation - "can't find label" error in Y86 compiler -
compilation - "can't find label" error in Y86 compiler -
i'm writing programme in y86, maintain getting error "can't find label" code lines setting stack , base of operations pointer. code is:
.pos 0 init: irmovl stack, %esp //set stack pointer irmovl stack, %ebp //set base of operations pointer phone call main //call main programme halt //terminate programme
which how appears in notes, when seek compile, get
error on line 8: can't find label line 8, byte 0x0006: irmovl stack, %esp //set stack pointer error on line 9: can't find label line 9, byte 0x000c: irmovl stack, %ebp //set base of operations pointer
i've tried putting .pos 0 line within init function (i thought might help) nixing init: line still same problem.
possible solution:
if have stack label defined @ bottom of file, seek creating blank line after it. literally having same issue , creating blank line after stack label fixed problem.
as aside:
it's absolutely amazing search result i've come across regarding error.
compilation label init y86
Comments
Post a Comment