aboutsummaryrefslogtreecommitdiff
path: root/bootbanner.asm
blob: d6abd256c43083aa8fd1d9c5661d9c82fcd69793 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;#######################################
;  BOOT BANNER
;  Displays a nice info banner on boot
jaspos_bootbanner:
	; Print nice horizontal line
	push	msgHLine
	call	jaspos_monitor_dispstring

	; Show version
	push	msgVersion
	call	jaspos_monitor_dispstring

	; Show compile date
	push	msgCompileDate
	call	jaspos_monitor_dispstring

	; Print disk label
	push	msgDiskLabel
	call	jaspos_monitor_dispstring

	; Convert and print Drive number
	mov		[free_ram+5], byte 0
	push	free_ram + 4				; Convert drive number to a string.
	push	word [Drive]				; This code preps the buffer ready for the banner, in case a slow processor's
	call	jaspos_strutils_d2str		; running the code - just to make the display as smooth as possible
	push	msgDrive
	call	jaspos_monitor_dispstring
	push	free_ram
	call	jaspos_monitor_dispstring
	push	msgNewLine
	call	jaspos_monitor_dispstring

	push	msgStackSize
	call	jaspos_monitor_dispstring
	mov		[free_ram+4], byte 0
	push	free_ram + 3
	push	STACK_SIZE
	call	jaspos_strutils_hex2str
	push	free_ram
	call	jaspos_monitor_dispstring
	push	msgNewLine
	call	jaspos_monitor_dispstring

	; Print nice horizontal line
	push	msgHLine
	call	jaspos_monitor_dispstring
	ret
;#######################################