DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦d487f5aba⟧ TextFile

    Length: 395 (0x18b)
    Types: TextFile
    Notes: UNIX file
    Names: »crts0.s«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »csu/crts0.s« 

TextFile

/ Segmented Z8001 Library
/ C run-time start-off.
/ Coherent native version.

	.globl	main_
	.globl	environ_
	.globl	errno_
	.globl	_exit_, exit_
	.globl	SS

SS = 0x0000

errno_ = 0x0000FFFE		/ SS|0xFFFE

start:
	ldl	rr0, rr14(6)		/ envp
	ldl	environ_, rr0
	sub	r13, r13		/ Clear frame pointer
	call	main_
	push	(rr14), r1
	call	exit_
_exit_:
	sys	1

	.prvd
	.word	0			/ NULL
environ_:
	.long	0