home *** CD-ROM | disk | FTP | other *** search
- prg FORMATTED geos FILE v1.0
- cope sOURCE v1.1
- disk a
- cope eDITOR v1.1
- uNTITLED
- ajpjwjAjNjZj
- /; ===
- ; editer for geos assembler
- ; by bill sharp
- start
- jsr oPENdISK
- ; LOAD THE DISK NAME INTO BUFFER tfnAME
- ; tHIS IS NECESSARY BECAUSE THE USER MAY CHANGE THE
- ; FILENAME. wE CANNOT ASSUME WHAT IT IS.
- LOADW r6:tfnAME
- LDA #6
- STA r7
- LDA #1
- STA r7+1
- LOADW r10:lKfR
- JSR fINDftYPES
- ;------
- jsr $c18a; MOUSEUP
- jsr cLR_sCREEN
- jsr vector
- LOADW r0:icons
- jsr $c15a; DO icons
- LOADW r0:menus
- lda #1
- jsr $c151; dOmENU
- lKfR .bYTE 'cope_vlir'
- tfnAME .bLOCK 20
- .bYTE 'abcdef',0
- ; icon routine
- icons
- .byte 1 ; 1 icon
- .word 160
- .byte 0
- .word iCDT
- .byte 38,0,2,15
- .word quit2 ; code
- .byte 158
- .byte 255,255,0,0,255,255,128,01,128,1,128,1
- .byte 135,225,135,225,135,225
- .byte 128,01,128,01,128,01
- .byte 255,255
- .byte 0,0
- .byte 255,255
- menus
- .byte mantop
- .byte manbot
- .word manlft
- .word manrt
- .byte horiz {$7c} 5
- .word mtx1
- .byte $80
- .word msb1
- .word mtx2
- .byte $80
- .word msb2
- .word mtx3
- .byte $80
- .word msb3
- .word mtx4
- .byte $80 ; sub-menu
- .word msb4
- .word mtx5
- .byte $80
- .word msb5
- mtx1 .byte plain,128,0
- mtx2 .byte 'fILE',0
- mtx3 .byte 'eDIT',0
- mtx4 .byte 'sEARCH',0
- mtx5 .byte 'tOOLBOX',0
- ;== start of sub-menus
- .byte manbot
- .byte manbot+1*14+1
- .word manlft
- .word manlft+30
- .byte vert {$7c} 1
- .word sX11
- .byte 0
- .word nocode
- sX11 .byte 'cope iNFO',0
- ;-----
- .byte manbot
- .byte manbot+5*14+1
- .word manlft+20
- .word manlft+86
- .byte vert {$7c} 5
- .word sU21
- .byte 0
- .word load
- .word sU22
- .byte 0
- .word save
- .word sU23
- .byte 0
- .word print
- .word sU24
- .byte 0
- .word quit
- .word sU25
- .byte 0
- .word sAVEaS1
- sU21 .byte 'lOAD',20,64,0,128,'l',0
- sU22 .byte 'sAVE',20,64,0,128,'s',0
- sU23 .byte 'pRINT',0
- sU24 .byte 'qUIT',20,64,0,128,'q',0
- sU25 .byte 'sAVE aS...',0
- ; end sUenu 2
- ; start sUenu 3
- .byte manbot
- .byte manbot+4*14+1
- .word manlft+41
- .word manlft+105
- .byte vert+4
- .word sU31
- .byte 0
- .word cut
- .word sU32
- .byte 0
- .word copy
- .word sU33
- .byte 0
- .word paste
- .word sU34
- .byte 0
- .word clear
- sU31 .byte 'cUT',20,83,0,128,'x',0
- sU32 .byte 'cOPY',20,83,0,128,'c',0
- sU33 .byte 'pASTE',20,83,0,128,'t',0
- sU34 .byte 'cLEAR',20,85,0,'del',0
- .byte manbot
- .byte manbot+43
- .word manlft+63
- .word manlft+142
- .byte vert+3
- .word sU41
- .byte 0
- .word find
- .word sU42
- .byte 0
- .word rptstr
- .word sU44
- .byte 0
- .word pAGEgo; gOmENU; CHANGED TO DELETE FUNCTION KEY DISPLAY
- sU41 .byte 'fIND...',20,120,0,128,'f',0
- sU42 .byte 'rEPLACE...',20,120,0,128,'r',0
- sU44 .byte 'gOTO pAGE...',20,120,0,128,'g',0
- .byte manbot
- .byte manbot+29
- .word manlft+99
- .word manlft+155
- .byte vert+2
- .word sU52
- .byte 0
- .word aSAVE
- .wORD sU53
- .bYTE 0
- .wORD bmARK
- sU52 .bYTE 'aUTOsAVE',0
- sU53 .bYTE 'bOOKmARK',0
- ;== end of menu tables
- ; vector table
- vector
- jsr $c1b7
- .word tmpnme
- .word fname
- .byte 17,0
- vector1
- ldx #0
- jsr $c1bd
- quit2
- jmp entdsk
- ;====
- ; dialog boxes
- db1 .byte 128+2
- .byte 11,70,30
- .word wA
- .byte 11,45,45
- .word wA2
- .bYTE 11,68,75
- .wORD wA3
- .bYTE 11,40,60
- .wORD wA4
- .byte 14,0
- wA .byte bold,'GEOcope',plain,0
- wA2 .byte 'cOPYRIGHT 1987, 1988',0
- wA4 .bYTE 'BY bILL sHARP cOMPUTING',0
- wA3 .bYTE 'vERSION 1.1',0
- ;application code/menus and icons.
- nocode
- jsr $c1bd ;goto first menu
- LOADW r0:db1
- jsr $c256; do dialog box
- nOchar
- jsr $c1bd ;goto first menu
- LOADW r0:db1
- jsr $c256; do dialog box
- ;====
-