* [9fans] 8c assembler syntax
@ 2015-01-09 11:08 Steve Simon
2015-01-09 14:22 ` erik quanstrom
2015-01-09 16:45 ` cinap_lenrek
0 siblings, 2 replies; 5+ messages in thread
From: Steve Simon @ 2015-01-09 11:08 UTC (permalink / raw)
To: 9fans
I am struggling with the plan9 assembler syntax
and its error messages, Anyone spot my silly?
This is my code
TEXT count_leading_zeros+0(SB),0,$0
MOVL n+0(FP),BX
BSRL BX,AX
MOVL $31,BX
SUB BX,AX
RET ,
which gives
larch% 8a plan9-386.c
plan9-386.c:7 syntax error, last name: BX
line: LNAME.: $$5 line
inst: LNAME.= expr
saw LLREG
Thanks for any help.
-Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] 8c assembler syntax
2015-01-09 11:08 [9fans] 8c assembler syntax Steve Simon
@ 2015-01-09 14:22 ` erik quanstrom
2015-01-09 21:17 ` Quintile
2015-01-09 16:45 ` cinap_lenrek
1 sibling, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2015-01-09 14:22 UTC (permalink / raw)
To: 9fans
> TEXT count_leading_zeros+0(SB),0,$0
> MOVL n+0(FP),BX
> BSRL BX,AX
> MOVL $31,BX
> SUB BX,AX
> RET ,
SUBL.
- erik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] 8c assembler syntax
2015-01-09 11:08 [9fans] 8c assembler syntax Steve Simon
2015-01-09 14:22 ` erik quanstrom
@ 2015-01-09 16:45 ` cinap_lenrek
1 sibling, 0 replies; 5+ messages in thread
From: cinap_lenrek @ 2015-01-09 16:45 UTC (permalink / raw)
To: 9fans
SUB -> SUBL
--
cinap
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] 8c assembler syntax
2015-01-09 14:22 ` erik quanstrom
@ 2015-01-09 21:17 ` Quintile
2015-01-09 23:10 ` cinap_lenrek
0 siblings, 1 reply; 5+ messages in thread
From: Quintile @ 2015-01-09 21:17 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
thanks so erik and cinap,
it's so hard to see what IS there rather than what you know should be there.
-Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] 8c assembler syntax
2015-01-09 21:17 ` Quintile
@ 2015-01-09 23:10 ` cinap_lenrek
0 siblings, 0 replies; 5+ messages in thread
From: cinap_lenrek @ 2015-01-09 23:10 UTC (permalink / raw)
To: 9fans
yeah, i know this :)
--
cinap
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-09 23:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 11:08 [9fans] 8c assembler syntax Steve Simon
2015-01-09 14:22 ` erik quanstrom
2015-01-09 21:17 ` Quintile
2015-01-09 23:10 ` cinap_lenrek
2015-01-09 16:45 ` cinap_lenrek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).