home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
various
/
change_bank.amos
/
change_bank.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1993-01-08
|
747b
|
19 lines
' This Proc will change the name of your bank.
' Name$ is the new name of the bank
' bank is the bank number you wish to change
' Name$ can not be more than 9 characters long.
Procedure BANK_NAME[NAME$,BANK]
'by Brett George
If Len(NAME$)=0 Then Pop Proc
NAME$=Left$(NAME$,9)
If Len(NAME$)<>9 Then NAME$=NAME$+Space$(8-Len(NAME$))
Poke Start(BANK)-9,Asc(Mid$(NAME$,0,1))
Poke Start(BANK)-8,Asc(Mid$(NAME$,1,1))
Poke Start(BANK)-7,Asc(Mid$(NAME$,2,1))
Poke Start(BANK)-6,Asc(Mid$(NAME$,3,1))
Poke Start(BANK)-5,Asc(Mid$(NAME$,4,1))
Poke Start(BANK)-4,Asc(Mid$(NAME$,5,1))
Poke Start(BANK)-3,Asc(Mid$(NAME$,6,1))
Poke Start(BANK)-2,Asc(Mid$(NAME$,7,1))
Poke Start(BANK)-1,Asc(Mid$(NAME$,8,1))
End Proc