File: test.asm

package info (click to toggle)
grafx2 2.8%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,240 kB
  • sloc: ansic: 78,305; makefile: 1,101; objc: 275; asm: 201; cpp: 51; xml: 46
file content (29 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
; vim:ts=8 sw=8:
.word $0801
.org  $0801
	.word next, 1911	; next basic line and line number
	.byte $9e,"2061",0	; SYS2061 
next:	.word 0			; end of basic program
start:
	jsr $e544
	lda #$00
	sta $d020	; border
	sta $d021	; background
	ldx #$00
loop:
	lda text,x
	sec
	sbc #$40
	sta $0400+40*12,x
	inx
	cpx #40
	bne loop
wait:
	;jmp wait
	;jsr $ffcf
	jsr $ffe4	; GETIN
	beq wait
	rts

text:
.byte "              HELLO WORLD               "