🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #31188

Re: Laser C question

#31188
From: Michel Rynderman
Date: Fri, 11 Mar 1988 22:10
26 lines
672 bytes
There are a few ways of getting the address of a label.
1.
extern foo()

asm {
	lea foo,A0
}

This does work. (I just tried it out)

asm {
label1:
	nop
	lea label1(PC),A0
	lea label1.L,A0
}

This also works.

asm {
	lea label2(PC),A0
label2:
	rts
}

Michel@megamax
Technical Details
Message-ID: <1306@megamax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!killer!pollux!megamax!michel
References: <2234@saturn.ucsc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!killer!pollux!megamax!michel
From: michel@megamax.UUCP (Michel Rynderman)
Newsgroups: comp.sys.atari.st
Subject: Re: Laser C question
Message-ID: <1306@megamax.UUCP>
Date: 11 Mar 88 22:10:47 GMT
References: <2234@saturn.ucsc.edu>
Reply-To: michel@megamax.UUCP (Michel Rynderman)
Organization: Megamax, Inc; Dallas, TX
Lines: 26