home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
german
/
screen_open.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
1KB
|
73 lines
OpenScreen = -30 -168
CloseScreen = -30 -36
;
OldOpenLibrary = -30 -378
CloseLibrary = -30 -384
;
Exit = -30 -114
;
ExecBase = 4
;
start:
clr.l d0
move.l execbase,a6
lea.l gfxname,a1
jsr oldopenlibrary(a6)
move.l d0,gfxbase
move.l execbase,a6
lea.l intname,a1
jsr oldopenlibrary(a6)
move.l d0,intuitionbase
move.l execbase,a6
lea.l dosname,a1
jsr oldopenlibrary(a6)
move.l d0,dosbase
;
move.l intuitionbase,a6
lea.l newscreen,a0
jsr openscreen(a6)
move.l d0,screen
;
wait_loop:
andi.b #64,$bfe001
bne wait_loop
;
move.l intuitionbase,a6
move.l screen,a0
jsr closescreen(a6)
;
move.l execbase,a6
move.l intuitionbase,a1
jsr closelibrary(a6)
;
move.l gfxbase,a1
jsr closelibrary(a6)
;
move.l dosbase,a1
jmp exit(a6)
;
gfxbase: dc.l 0
intuitionbase: dc.l 0
dosbase: dc.l 0
;
screen: dc.l 0
;
align 4
gfxname: dc.b "graphics.library",0
align 4
intname: dc.b "intuition.library",0
align 4
dosname: dc.b "dos.library",0
;
align 4
title: dc.b "The C.C.G. presents:",0
;
align 4
newscreen:
dc.w 0,0,320,200,3 ; x, y, width, height
dc.b 0,1 ; DetailPen, BlockPen
dc.w 0,15 ; ViewModes, Scr.Types
dc.l 0 ; APTR font
dc.l title ; ATPR Screen Title
dc.l 0,0 ; APTR Gad., BitMap