| James Van Buskirk 2005-09-08, 6:59 pm |
| "Gojko Magazinovic" <gmag@fesb.hr> wrote in message
news:70m0i1t2e798dgk0ajqv8b25gt8p8jt3q3@
4ax.com...
> Would you be so kind to provide a timer_CVF object code (.obj) - I
> have not a MASM 6.11 compiler.
Go to the newsgroup comp.lang.asm.x86, find a thread entitled
'Get the FAQs', do so and follow the instructions to download
MASM. If g95 is the target, the as assembler comes with the
compiler. For g95 Mac OSX, I have a *.s file that works to read
the Time Base Register:
# File: timer_g95_ppc.s
# Public domain 2005 James Van Buskirk
.machine ppc
.text
.align 2
.globl _timer_
_timer_:
mftbu r3
mftb r4
mftbu r2
cmpw r2, r3
bne _timer_
blr
.subsections_via_symbols
.... but I don't know what the Time Base Register counts.
I think it's slower than the processor clock, but maybe
someone who knows PPCs can tell me. The above file is
not in the *.ZIP archive.
--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end
|