9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [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

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).