home *** CD-ROM | disk | FTP | other *** search
Text File | 2019-04-13 | 36.6 KB | 1,089 lines |
-
-
- rea 12-17 nor
- rea 20-21 nor
- rea 23-24 nor
- rea 26 nor
- rea 37-38 nor
- ************
- Topic 12 Tue Dec 28, 1993
- B.KIRKLAND (Forwarded)
- Sub: "Reading" a modem.
-
- I'm trying to make a short dial routine for a program, and need some help with
- how to read what the modem is "saying".
- 2 message(s) total.
- ************
- ------------
- Category 5, Topic 12
- Message 1 Tue Dec 28, 1993
- B.KIRKLAND (Forwarded)
-
- I don't know if this is the right place for it, but here it goes.
-
- I've made a database that has a dial routine built inn. What I need is to
- find out how to tell whether the line is ringing, a voice answered, or i the
- line is bussy.
-
- I know this is in on of the registers, but I can not figure out how to read
- the value.
-
- Ex.:
-
- I know that the ATXx is where this would be, and that ATX3 means the line is
- bussy, but how can I make my program read this. BTW, I need to know how to do
- this in BASIC, not ML.
-
- Bob.
- ------------
- Category 5, Topic 12
- Message 2 Tue Dec 28, 1993
- CBM-ED [e.g.bell] (Forwarded)
-
- Bob:
-
- You don't say what modem you are doing this for. If it is a Hayes
- compatible, you can set the messages for VERBOSE with the command: AT V1.
-
- This will return the messages (at least for my modem) like BUSY,
- CONNECT ##00, NO ANSWER, RING, etc. From BASIC, you would open channel
- 2 for the desired baud rate (remember BASIC is going to have a HARD time
- handling speeds above 300 baud, tho maybe not for messages coming from
- the modem itself) then read that channel (channel 2) looking for the
- above messages, though 1 character at a time.
-
- ex: get#2,a$
-
- Build your string, stripping hi bits (and %01111111) control chars or
- other garbage, until you find the carriage return. When you find that,
- compare what you got against what you were looking for. To determine
- that there is a carrier, check bit 4 of 56577 (for user port modems
- only, and you have to know the expected state due to the fact that CBM
- modems do things backwards from Hayes compatibles at this bit)
- After you determine this bit is set (or not set, depending on the modem)
- you can start checking for the messages as above. If you don't get a
- CONNECT ##00 message (ex: CONNECT 2400) within a reasonable amount of
- time, someone has probably answered the phone as opposed to a modem, or
- the line is busy, which would have sent that message.
-
- For user port modems that don't have messages like that (read that as
- 300 baud modems), you have to do a lot more work to dial, etc. but I
- assume you don't need all that info. To test the other stuff, the carrier
- bit is the same. There is also a RIng indicator bit, but I believe that
- may be for incoming calls. Not sure right now about that as I've never
- used it. However, these days, you are much better to go for the modem's
- response strings. And if you are planning SwiftLink compatibility, that
- applies even more. Carrier on a SwiftLink, however, is tested at bit 6
- oof one of its own registers. See... it never gets any easier and one
- question leads to 17 more. :)
-
- GO> I know that the ATXx is where this would be, and that ATX3
- GO> means the line is bussy, but how can I make my program read
- GO> this
-
- Actually, the AT Xx commands are sent to the modem, not read from it.
- The commands you mention here only tell the modem how to respond to those
- conditions. My suggestions above about reading the modem channel remain
- the same. I believe I use AT X4 in my programs, but of course you would
- have to use what your modem supports.
- ------------
- ************
- Topic 13 Fri Dec 24, 1993
- A.HALE2 (Forwarded)
- Sub: FIND DRIVE TYPE
-
- How do I find the drive type without reading disk directory?
- 5 message(s) total.
- ************
- ------------
- Category 5, Topic 13
- Message 1 Fri Dec 24, 1993
- A.HALE2 (Forwarded)
-
- What I want to do is pole the drive and have it tell the program if it is a
- 1541, 1571, 1581, CMD or whatever without having to access a disk.
- ------------
- Category 5, Topic 13
- Message 2 Sun Dec 26, 1993
- S.EYRSE (Forwarded)
-
- Here is a fast little basic program that I have used to "set" other programs
- to the correct diver type so the Dir. track and sector would be right. As
- listed it will print out the number of the drive so you can check yours and I
- would think even hard drives to get the needed numbers. 10 D$=8 :rem Drive #
- 20 open 1,D$,15 30 print#1,"M-R"chr$(0)chr$(192)chr$(1) 40 Get#1,A$ 45 rem if
- A$=192 its a 1581 50 rem if A$=151 its a 1541 60 rem so if non of these it
- would be a
- 1571 70 Print ASC(A$) 80 close1:end
- What were doing is Reading ONE byte from the disks memory at $C000 hex. Hope
- this helps..if you want it in ML it would be easy enough to change. Look in
- the back of your disk drive book. Steve..:)
- ------------
- Category 5, Topic 13
- Message 3 Sat Jan 01, 1994
- CMD-DOUG (Forwarded)
-
- Search the libs using the keyword POLL. That should get you the file number
- for the POLL DEVS program, which I'm sure I've uploaded in the past. It should
- handle all the common Commodore and CMD devices.
- ------------
- Category 5, Topic 13
- Message 4 Thu Jun 23, 1994
- CBM-DENNIS at 01:29 EDT
-
- On my 1541 test demo disk, and on several of the transactor disk's is a basic
- program written my Jim Butterfield that will detect all the drives from a 2040
- to a 1581. I don't think it will detect a CMD hard drive at this time though.
- C-YA, Dennis
- ------------
- Category 5, Topic 13
- Message 5 Thu Jun 23, 1994
- CMD-DOUG at 16:49 EDT
-
- Check the libs to see if my POLL DEVS.BAS program is in there. It does this
- for most common drives.
- ------------
- ************
- Topic 14 Thu Dec 09, 1993
- J.SERAFINO (Forwarded)
- Sub: two-byte binary to deciaml conversion
-
- Well, another routine I could use is a more efficient number conversion
- routine... the two-byte binary to deciaml routine in menuette is a dinosaur.
- 3 message(s) total.
- ************
- ------------
- Category 5, Topic 14
- Message 1 Thu Dec 09, 1993
- C128.JBEE (Forwarded)
-
- In library #33 you can find old Star Board Journals on binary decimal
- conversions.
- ^
- BCD
- ------------
- Category 5, Topic 14
- Message 2 Fri Dec 10, 1993
- M.RANDALL2 [Maurice] (Forwarded)
-
- ;This is not necessarily the best way to convert a
- ;two byte value into an ascii decimal string, but it
- ;is the way that I do it in geoSHELL if it helps any.
- ;These two routines are accessible in geoSHELL's
- ;jump table for external commands to use. All the
- ;routines in geoSHELL's jump table are described in
- ;detail in the geoSHELL Programmer's Development Package,
- ;due to be released into the public domain soon.
-
- ;this routine will take the 16-bit value in r8 and convert
- ;it into a five byte ascii decimal string. AsciiString will
- ;contain the string.
-
- r4 =$0a ;substitute any location for these
- r4L =$0a ;variables. These are normal to GEOS.
- r4H =$0b
- r8 =$12
-
- ByteWZAsc: ;enter at this point to leave in
- ;leading zeroes.
- lda #0
- .byte $2c
-
- ByteNZAsc: ;enter at this point to strip
- ;leading zeroes.
- lda #128
- sta StripZFlag
-
- lda #'0'
- ldx #4 ;first fill the string with
- ;ascii zeros.
- 5$
- sta AscString,x
- dex
- bpl 5$
-
- ldx #0 ;start with the left-most digit.
- 10$
- MoveW r8,r4 ;copy r8 to r4
- 20$
- sec
- lda r4L subtract a high byte and low byte
- sbc lowConTable,x ;from the two tables from r4.
- sta r4L
- lda r4H
- sbc highConTable,x
- sta r4H
- bcc 30$ ;branch once r4 is smaller than
- ;the value from the tables.
- MoveW r4,r8 ;copy r4 back to r8.
- inc AscString,x ;increment a digit in our string.
- bne 20$ ;branch always.
- 30$
- inx ;increment to point to the next digit.
- cpx #5 ;are we done?
- bne 10$ ;if not, then branch back to reload r4.
- bit StripZFlag ;do we want to strip leading zeros?
- bpl 50$ ;branch if not.
- ldy #0 ;start with the first digit.
- 40$
- lda AscString,y
- cmp #'0' ;is it a zero?
- bne 50$ ;branch if not.
- lda #' ' ;replace it with a space.
- sta AscString,y
- iny
- cpy #4 ;don't mess with the last digit in
- ;case the number was zero.
- bne 40$ ;branch if not done yet.
- 50$
- rts
-
- AscString:
- .byte "00000"
- .byte 0 ;terminate the string.
- lowConTable:
- .byte [10000,[1000,[100,[10,[1
- highConTable:
- .byte ]10000,]1000,]100,]10,]1
- StripZFlag:
- .block 1
-
- ;Hope this helps, Maurice Randall
-
-
- ------------
- Category 5, Topic 14
- Message 3 Sun Dec 26, 1993
- S.EYRSE (Forwarded)
-
- If your working in Geos V2.0 for the 64 there is a built in program to do this
- called PutDecimal which will change a "word" 16 bit hex number into a five
- place ASCII number. As setup it will then fall thru to PutChar to print this
- number on the screen. Geos uses it to print various things out for dialog
- boxes and for Calc..ect. the full code starts with a jsr to $C184. But if you
- enter at $E8EC you just get the conversion with the ASCII number text left at
- locations $44 and up. Register r3 has the # of characters to be printed out.
- Or used as you want. If anyone is interested I'll write it down and post here
- Steve.
- ------------
- ************
- Topic 15 Tue Dec 07, 1993
- D.SCHWARTZ (Forwarded)
- Sub: C-64 Hard Drive Project
-
- Has anyone downloaded the huge file that tells how to build an experimental
- hard drive adapter for the C-64 using a Western Digital WX1 or WX2 IBM/Clone
- hard drive interface?
- 2 message(s) total.
- ************
- ------------
- Category 5, Topic 15
- Message 1 Tue Dec 07, 1993
- D.SCHWARTZ (Forwarded)
-
- Yes... I know that even if I build it I won't be able to use it with existing
- software without modifications, but I still want to play with it... Has
- anyone built a working unit? If so, please give details...
-
- Can anyone tell me where I can find a Western Digital WX1 or WX2 hard drive
- controller?
-
- Thanks...
- ------------
- Category 5, Topic 15
- Message 2 Wed Dec 08, 1993
- C128.JBEE (Forwarded)
-
- I downloaded the file but never bothered playing around with it.
- I would say go out and buy a copy of Computer Shopper and start calling
- all the HD suppliers/repairers that have toll free numbers.
- I have had good dealings with J.B. Tech.
- ------------
- ************
- Topic 16 Sat Dec 04, 1993
- J.SERAFINO (Forwarded)
- Sub: ML division routine needed
-
- I need a quick ML division routine that will divide a 16 bit number by an 8
- bit number, and return a 16 bit answer plus remainder.
- 6 message(s) total.
- ************
- ------------
- Category 5, Topic 16
- Message 1 Sat Dec 04, 1993
- J.SERAFINO (Forwarded)
-
- any help on this would be appreciated.
- ------------
- Category 5, Topic 16
- Message 2 Sat Dec 04, 1993
- CMD-DOUG (Forwarded)
-
- Well, this routine actully lets you divide a 16 bit number by another
- 16 bit number, but since you can zero out the high byte in the
- dividend, who cares? Store the number to be divided into DIVNUM, and
- the number you are dividing with into DIVDEN. The answer will show up
- in ANSWER (of course), and the remainder in WORK. This bit
- manipulation method, btw, is lots faster than using the subtraction
- method. Oh, and don't forget - division by zero isn't legal, so check
- for that first.
-
- ; Variables
- ;------------------
- DIVNUM .BYT $00
- .BYT $00
- DIVDEN .BYT $00
- .BYT $00
- WORK .BYT $00
- .BYT $00
- ANSWER .BYT $00
- .BYT $00
- COPYN .BYT $00
- .BYT $00
- COUNTR .BYT $00
- ;
- START LDA #16 ; Set counter for 16 bit division
- STA COUNTR
- ;
- LDA #0 ; Clear work and answer vars
- LDY #3
- ZLOOP STA WORK,Y
- DEY
- BPL ZLOOP
- ;
- LDA DIVNUM ; Copy the number to be divided
- STA COPYN
- LDA DIVNUM+1
- STA COPYN+1
- ;
- DIVLP JSR MVOVER ; It all starts here
- DEC COUNTR
- BNE DIVLP
- RTS
- ;
- MVOVER ASL COPYN
- ROL COPYN+1
- ROL WORK
- ROL WORK+1
- RTS
- ;
- DIVIDE LDA WORK+1
- CMP DIVDEN+1
- BEQ LOOKMR
- BCS SUBTR
- ;
- FIXANS ROL ANSWER
- ROL ANSWER+1
- RTS
- ;
- LOOKMR = *
- LDA WORK
- CMP DIVDEN
- BCC FIXANS
- ;
- SUBTR = *
- JSR FIXANS
- SEC
- LDA WORK
- SBC DIVDEN
- STA WORK
- LDA WORK+1
- SBC DIVDEN+1
- STA WORK+1
- RTS
- ;
- .END
- ------------
- Category 5, Topic 16
- Message 3 Sun Dec 05, 1993
- C128.JBEE (Forwarded)
-
- Thank you Doug :)
- ------------
- Category 5, Topic 16
- Message 4 Sun Dec 05, 1993
- J.SERAFINO (Forwarded)
-
- thanks, doug. T D You've always got just teh right
- routine. he
- ------------
- Category 5, Topic 16
- Message 5 Sun Dec 05, 1993
- J.SERAFINO (Forwarded)
-
- Well, I tried it but it doesn't work. It seems that the "divide" subroutine is
- never called by the main portion of the routine... any ideas?
- ------------
- Category 5, Topic 16
- Message 6 Sun Dec 05, 1993
- CMD-DOUG (Forwarded)
-
- OOPS!!! Add a JSR DIVIDE right after the JSR MVOVER!
-
- Here is the whole thing, corrected!
-
- ; Variables
- ;------------------
- DIVNUM .BYT $00
- .BYT $00
- DIVDEN .BYT $00
- .BYT $00
- WORK .BYT $00
- .BYT $00
- ANSWER .BYT $00
- .BYT $00
- COPYN .BYT $00
- .BYT $00
- COUNTR .BYT $00
- ;
- START LDA #16 ; Set counter for 16 bit division
- STA COUNTR
- ;
- LDA #0 ; Clear work and answer vars
- LDY #3
- ZLOOP STA WORK,Y
- DEY
- BPL ZLOOP
- ;
- LDA DIVNUM ; Copy the number to be divided
- STA COPYN
- LDA DIVNUM+1
- STA COPYN+1
- ;
- DIVLP JSR MVOVER ; It all starts here
- JSR DIVIDE
- DEC COUNTR
- BNE DIVLP
- RTS
- ;
- MVOVER ASL COPYN
- ROL COPYN+1
- ROL WORK
- ROL WORK+1
- RTS
- ;
- DIVIDE LDA WORK+1
- CMP DIVDEN+1
- BEQ LOOKMR
- BCS SUBTR
- ;
- FIXANS ROL ANSWER
- ROL ANSWER+1
- RTS
- ;
- LOOKMR = *
- LDA WORK
- CMP DIVDEN
- BCC FIXANS
- ;
- SUBTR = *
- JSR FIXANS
- SEC
- LDA WORK
- SBC DIVDEN
- STA WORK
- LDA WORK+1
- SBC DIVDEN+1
- STA WORK+1
- RTS
- ;
- .END
-
- Sorry about leaving that out!!! :)
- ------------
- ************
- Topic 17 Thu Jun 24, 1993
- J.SCHWARTZ1 [DuneWalker] (Forwarded)
- Sub: Controlling cassette port...
-
- Needed: info on how to write to the cassette port.
- 3 message(s) total.
- ************
- ------------
- Category 5, Topic 17
- Message 1 Thu Jun 24, 1993
- J.SCHWARTZ1 [DuneWalker] (Forwarded)
-
- Does anybody know how to control the cassette port? For example, is there a
- "poke" to turn the cassette motor on (and off again)? And is it the same
- poke, value for both the C128 and C64? Also, does anybody here know how much
- current that circuit (the cassette motor power circuit) can handle? Many thanx
- for info/insights/advice, etc.
- ------------
- Category 5, Topic 17
- Message 2 Mon Dec 06, 1993
- C.YOUNG36 [Charlie] (Forwarded)
-
- I don't usually spend my measly 4 hours per month helping people, but I guess
- I have the Christmas spirit this month or something. Why does anyone pay to
- help others? Helping should be free!
-
- > Does anybody know how to control the cassette port?
-
- Yes, I know how. Figured it out when writing a Morse Code Keyer program.
-
- > For example, is there a poke" to turn the cassette motor on (and off again)?
-
- Well it is that simple only under certain conditions.
-
- 1. JiffyDos is installed and enabled.
- 2. You are not running anything that switches ROM out.
-
- In which case you can poke1,23 to turn the cassette motor on, and poke1,55 to
- turn the cassette motor off.
-
- > And is it the same poke, value for both the C128 and C64?
-
- Don't think it would be the same for C128 in 128 mode. Should work with a
- C128 in C64 mode.
-
- In case you don't know that the above conditions will always be true, there is
- a way to turn the cassette motor on and off anyway. Download my file
- CASSMOTOR.SDA which includes a machine language routine and sample basic
- program to turn the motor on and off.
-
- > Also, does anybody here know how much current that circuit (the cassette
- motor power circuit) can handle?
-
- Don't know exactly. Enough to run a datasette -- how much current does that
- take? 100 Ma maybe? Should be enough current to drive a nice size 6V relay.
-
- Send me EMAIL if you have questions -- don't usually spend my 4 hours/month
- doing this.
-
- Charlie
- ------------
-
- 5 ************
- Topic 20 Wed Mar 23, 1994
- B.MASSE at 10:13 EST
- Sub: what is the poke to coldstart the 128 f
-
- I need the poke to reset my 128 and ramlink from a within a compiled machine
- language program.. I want to exit the program and have my auto menu screen
- come on and have all my JIFFYDOS commands activated.... HELP!
-
-
- 2 message(s) total.
- ************
- ------------
- Category 5, Topic 20
- Message 1 Thu Mar 24, 1994
- H.HERMAN1 at 01:32 EST
-
- BM,
-
- In Basic a sys65341 will do the deed!
-
- Howie
- ------------
- Category 5, Topic 20
- Message 2 Thu Mar 24, 1994
- B.MASSE at 02:00 EST
-
- Thanks Howie... That was just what I needed... it worked like a charm
-
-
-
- B
- ------------
- ************
- Topic 21 Mon Apr 11, 1994
- J.STEPHENSO1 [Jimbo] at 02:28 EDT
- Sub: LYNX format
-
- What is the LYNX format(s)?
- 4 message(s) total.
- ************
- ------------
- Category 5, Topic 21
- Message 1 Mon Apr 11, 1994
- J.STEPHENSO1 [Jimbo] at 02:35 EDT
-
- My local BBS's seem to have a fixation for LYNXing files. I'm tired of having
- to copy a file to a blank 1541 disk and swap devices just to open these
- "archives." What is the format for the various LYNX flavors? When I used a
- sector editor I got most of it, but there were some extra, unaccounted for
- bytes in the header. I downloaded LYNX.FIX, or something like that, but all
- it does is read the header, grab the string "LYNX xx..." and print out "Use
- LYNX xx to deLYNX." Duh! Are there indeed differences in the different
- versions? If you didn't guess, I want to write something that will read a
- LYNX file from ANY drive and deLYNX to ANY drive (like GEOPACK for GEOS), and
- maybe provide an option for a selective deLYNX. And if this particular wheel
- has already been invented, let me know, please? Thank you,
-
- Jimbo
- ------------
- Category 5, Topic 21
- Message 2 Tue Apr 12, 1994
- CBM-MARK at 21:01 EDT
-
- Jimbo, have you tried this version of LYNX by chance?
-
- *********************************
- Number: 10473 Name: ULTIMATE LYNX 3
- Address: A.ALLEN Date: 921115
- Approximate # of bytes: 34560
- Number of Accesses: 33 Library: 22
- Description:
- This deLYNXer will work with almost any drive there is. 1540/41/71/81,
- SFDs, etc. It will not work with native mode CMD partitions.
- [ 138 CMD BLKS:PRG ]
- Keywords: lynx,lnx,xfer
- ---------------------------------
-
- I have no idea if it will deLYNX all versions but as you can see it
- reportedly works with any disk drive.
-
- Mark
- ------------
- Category 5, Topic 21
- Message 3 Wed Apr 13, 1994
- J.STEPHENSO1 [Jimbo] at 00:12 EDT
-
- CM>reportedly works with any disk drive.
-
- With the exception of CMD native mode partitions :/ I use a HD-200, a FD-
- 4000, and a RAMLink, and avoid emulation partitions like the plague. I *like*
- lots of room on a disk :)
-
- Besides, I do have some LYNX utilities lying around, and use them after
- transfering the LYNX files to the 1571 (slooooow...). I'd just like to know
- what differences there are, if any, and what the header description is, a la
- file 8343 (lists header formats for popular compression schemes), so I can
- write my own utility (it's more fun that way ...). But thanks for the
- suggestion. I'll see if it works with, say, a 1541 partition on the RAMLink.
-
- Jimbo
-
- P.S. How does it feel to be able to drive a luxury car solely from the money
- I've spent at your place ;)
-
- ------------
- Category 5, Topic 21
- Message 4 Wed Apr 13, 1994
- C128.JBEE at 03:58 EDT
-
- >J.STEPHENSO1 [Jimbo] at 00:12 EDT
- >With the exception of CMD native mode partitions :/ I use a HD-200,
- >a FD- 4000, and a RAMLink, and avoid emulation partitions like the plague.
-
- So do I! Only ones I still use much are 1581 because of CP/M.
- ------------
-
- 5 ************
- Topic 23 Sat Apr 23, 1994
- D.BOBER [RENTaLASER] at 16:47 EDT
- Sub: C64 Fonts
-
- How do you load the fonts you create with a font editor for use with your own
- BASIC programs?
- 14 message(s) total.
- ************
- ------------
- Category 5, Topic 23
- Message 1 Sat Apr 23, 1994
- D.BOBER [RENTaLASER] at 16:51 EDT
-
- I created a FONT with the font editor I download here. Now I want to use that
- FONT in my BASIC program. The font has been saved to disk. But when I attempt
- to load it with my program, I get an "out of memory error".
-
- I'm new at this! How do you do IT? How do load the font into memory so can
- use it.?
-
- :)
- ------------
- Category 5, Topic 23
- Message 2 Sun Apr 24, 1994
- CBM-ED [e.g.bell] at 02:37 EDT
-
- DB: Load the font at the start of your program using either BLOAD
- if you are using a C128, or load "file",8,1 if using a C64. After
- you load the file, if you are doing the load from the keyboard, type
- NEW and press RETURN. If you are doing the load from within your
- program you probably don't have the problem. The problem is that
- your pointers are being fooled by the load. NEW will reset them. I
- assume you also know that it will take more than loading a font to
- actually use it, particularly if you are working with 80 column mode
- on the 128.
-
- Ex: (if memory serves ;)
-
- 10 a = a + 1 : if a = 1 then load "font",8,1:rem from program mode
-
- from immediate mode:
-
- load "font",8,1
- new
- load "basic prog",8
- run
- ------------
- Category 5, Topic 23
- Message 3 Sun Apr 24, 1994
- D.BOBER [RENTaLASER] at 18:11 EDT
-
- Well..........No. I didn't know that it will take mor e than just loading a
- font to actually use it..........;)
-
- I just assumed that loading a new font would "replace" the existing CBM Font.
- I thought the CBM font was copied from ROM into memory.
-
- How do you use the font after loading it? Is there a routine/utility here in
- the Libs I can use?
-
- See, I told ya I was new at this ;)
-
- thanks for all you help.
-
- Douglas Bober
- ------------
- Category 5, Topic 23
- Message 4 Sun Apr 24, 1994
- CBM-ED [e.g.bell] at 18:58 EDT
-
- DB:
- DB> assumed that loading a new font would "replace" the existing
- DB> CBM Font. I thought the CBM font was copied from ROM into
- DB> memory
-
- That is true only of the 128 80 column mode, and even then there is
- move involved in it than just 'loading' it in because you have to
- load it and then get it into the VDC chip. You haven't said if you are
- using a C64 or a C128.
-
- On the C64 (and the C128 in 64 mode) you have to load the font into
- RAM then tell the C64 where to look for your new definitions. There
- is a bit involved in doing it tho it is not that hard. There are only
- certain locations at which your font can live in memory, and it is going
- to take some memory away from your BASIC program. You should find out
- where the font loads in memory (get the first 2 bytes if the file.
- multiply the 2nd times 256 and add it to the first and that is the load
- address). According to the C64 programmer's reference guide:
-
- 'The best place to put your character set for use with BASIC while
- experimenting is beginning at 12288($3000 in hex). This is done by
- POKEing the low 4 bits of location 53272 with 12.....'
-
- Ex:
- poke 53272,(peek(53272)and240)+12
-
- To protect your character set from your BASIC program, change the top
- of memory pointers:
-
- poke 52,48:poke 56,48:clr
-
- I believe this should get you in business. There are other locations
- at which to put your font if you want to twiddle with the bank the VIC
- looks at, etc. but for just starting out, this should get you moving.
- You *may* find that your font loads at 12288 already, in which case to
- use these pokes, all you should have to do is :
-
- load "fontname",8,1
-
- then do the above pokes and load your BASIC program and run it. Note,
- though, that this is probably a very limiting memory configuration, but
- it should at least get you started. :)
-
- DB> See, I told ya I was new at this
-
- Everyone started out like that! :) I hope this gets you moving in the
- right direction. Let us know how you make out, and if you have any other
- questions/problems, just holler. egb
- ------------
- Category 5, Topic 23
- Message 5 Sun Apr 24, 1994
- D.BOBER [RENTaLASER] at 22:20 EDT
-
- OK! Now we're getting somewhere!
-
- I wrote a short program, following your instructions and it worked. However,
- when I added it to my program, the screen crshed. It filled up with with junk.
- The problem, I think, is the size of my program. It is 107 Blocks long...
-
- Where can I relocate the font? Also, I'm planning to Compile the program when
- it's complete. Probably use BASIC 64 by Abacus. Guess I'll have to relocate
- the font again.
-
-
- This is fun!
- ------------
- Category 5, Topic 23
- Message 6 Tue Apr 26, 1994
- CBM-ED [e.g.bell] at 08:36 EDT
-
- Sorry to take so long getting back to you. If I don't do my 'out' stuff
- immmediately it gets lost. :( Anyway, here is what you are going to
- have to do, and this is book stuff, not stuff I've done in a lot of years.
- And I can't guarantee it will work with your compiler, tho if it is as
- configurable as BASIC 128, it might work ok.
-
- Here is what I'd try if I were you....
-
- poke 56578,peek(56578)or 3:rem set bits 0 and 1 to outputs
- poke 56576,(peek(56576)and 252) or 0:rem video bank 3 starts at 49152
- poke 53272,(peek(53272)and 15) or 32:rem screen to 51200
- poke 648,8:rem tell screen editor what we are doing too
- poke 53272,(peek(53272)and 240) or 0:rem char set to 49152
-
- All of the above will also require that you change the load address of
- your font to 49152.... which means a sector editor and changing the
- 1st 2 bytes of the file to 00 192 respectively. I would make a copy of
- the file if I were you to make sure this all works. I've never put a
- character set up there, but I believe it should work ok for you. I seem
- to recall that you can put a character set under the kernal at $e000 and
- the VIC can see it, but I can't say that with 100% certainty. Even if
- true, you will still have to change the video bank to bank 3. See, the
- more you want to do, the more involved it gets. I also thought of a way
- you could do it that might even be easier, but you would have to raise the
- start of BASIC, and I'm not sure BASIC 64 would tolerate that. But if you
- did, you could put your font where BASIC starts and leave the video bank
- alone. I have done that before I'm pretty sure.
- ------------
- Category 5, Topic 23
- Message 7 Wed Apr 27, 1994
- D.BOBER [RENTaLASER] at 19:19 EDT
-
- Well I don't have BASIC 64, yet anyway. Should this work in BASIC? I followed
- your instructions. The program loads but then the screen fills up with upper
- case and lower case characters, some of which are reversed. The screen also
- freezes. Pressing run/stop restore clears the screen but the cursor never
- appears.
-
- Instead of useing a sector editor, I used a program tha came with the 1571
- drive called "load address". It changes the load address for you.
-
- Any Ideas?
-
- I never tried programing the VIC before. This is foriegn to me.
-
- Thank you....
- ------------
- Category 5, Topic 23
- Message 8 Thu Apr 28, 1994
- CBM-ED [e.g.bell] at 09:48 EDT
-
- DB: As I said, I have never done it exactly that way myself, but did
- you change the font load address, etc. and load it first. I'll have to
- give it a try and see what I can come up with maybe later today. Do you
- have a font you can upload for me to test it with? I'm sure of what has
- to be done... just not exactly sure how it must be done at this point.
-
- Just read the rest of your message wrt the load address... that should
- be ok... you did load it with a ,8,1, right?
-
- As for programming the VIC, don't be intimidated. All you are doing is
- telling it to look in different places for the stuff it needs to display.
- It is a lot easier if you have all the memory and reference manuals,
- which I do. :)
- ------------
- Category 5, Topic 23
- Message 9 Thu Apr 28, 1994
- D.BOBER [RENTaLASER] at 19:30 EDT
-
- Yes, I did change the fonts load address to 49152. And loaded it first with
- ,8,1. As for the font, there isn't much differance between my font and the
- commodore font. I just changed some of the graphic char- actors so I could
- "draw" windows and use the Upper-case and Llower-case charactors. I only
- changed four charactors. the font editor I used loads the commodore font for
- editing. Just changed some of them. I double checked all my entries, but I
- check themm again to be sure.
- ------------
- Category 5, Topic 23
- Message 10 Fri Apr 29, 1994
- CBM-ED [e.g.bell] at 06:38 EDT
-
- DB: I'm going to take a look at it as soon as I log off. Perhaps I'll
- have an answer for you later today. :)
- ------------
- Category 5, Topic 23
- Message 11 Fri Apr 29, 1994
- CBM-ED [e.g.bell] at 15:35 EDT
-
- DB: Here is what you need to do what you want to do.
-
- 10 open5,16,5,"font.roman"
- 20 get#5,a$,b$
- 25 :
- 30 ad=51200
- 35 :
- 40 get#5,a$ : h0=st
- 50 poke ad,asc(a$+chr$(.)):ad=ad+1
- 55 if h0 then close5
- 60 goto 40
- 65 :
- 100 poke56578,peek(56578) or 3
- 110 poke56576,(peek(56576)and252)
- 115 :
- 120 poke 53272,(peek(53272)and15)
- 125 poke 648,192
- 1020 :
- 1025 poke53272,(peek(53272)and 240) or 2
-
- Note! You must change your font load address again, to 51200. Sorry!
- Also, you only *need* lines 100 to 1025. Hmmm! I thought I had
- renumbered that. O well, no big deal. Anyway, this will put your
- font and your screen safely in VIC bank 3, out of the way of BASIC
- so you have plenty of room for your program, etc. The lines before
- 100 are just mine to load in the font I was using to test this. All in
- all, I think this is a pretty nice solution given that it takes nothing
- at all away from your BASIC program. O, and one other plus, if you
- should need it, is the 100 bytes of memory from 1024 to 2023. This is
- the normal screen area, but with this little hack, it is quite free for
- anything you can think to use it for. If you wanted to experiment, you
- could even buy yourself another 1K of BASIC space by lowering the BASIC
- start pointers to 1024. Let me know how you make out w/this. And there
- are no guarantees that this would work with a compiled BASIC program.
- ------------
- Category 5, Topic 23
- Message 12 Fri Apr 29, 1994
- CBM-ED [e.g.bell] at 15:36 EDT
-
- BTW, I forgot one thing. I had to make a correction to the program
- in line 55. It should have a 'goto 100' after the 'close5'. sorry!
- ------------
- Category 5, Topic 23
- Message 13 Fri Apr 29, 1994
- D.BOBER [RENTaLASER] at 20:29 EDT
-
- OK!!
-
- Thanks Ed. I'll sign off and try it...
- ------------
- Category 5, Topic 23
- Message 14 Sat Apr 30, 1994
- D.BOBER [RENTaLASER] at 17:24 EDT
-
- Hello again...
-
- Well, it works flawlessly!!
-
- Many, many thanks to you Ed for all your help! I couldn't have done it
- without your insight. By the way, it is a checkbook balancing program. It
- started out years ago as a very simple account balancer that didn't save the
- register to disk. It now comes complete with pull-dowm menus and supports
- multi drives including the RamLink Real Time Clock. Also uses a ML routine I
- found in a book for windowing.
-
- I should have my compiler in about a week. When I am sure that all of the
- bugs have been worked out, I'll upload it here.
-
- Again, Thank you!
-
- Douglas Bober [RENTaLASER] [NHSCC pres.]
-
-
- ------------
- ************
- Topic 24 Sun Apr 24, 1994
- C.TUCKER3 at 17:08 EDT
- Sub: Ultra HiRes Demo & Basic 8
-
- Inquires into using Basic 8 for programming and how to get programs like Ultra
- HiRes Demo to work once you've downloaded. How can you acquire 64k video ram
- and is it easy to install? :)
- 5 message(s) total.
- ************
- ------------
- Category 5, Topic 24
- Message 1 Sun Apr 24, 1994
- B.MASSE at 19:04 EDT
-
- Where to find 64k Video Ram... software support international sells the ram.
- It is a piggyback type deely-bopper that is really easy to install . It is
- kinda expensive though, around $50 bucks. There number is
- 1 800 356 1179 and they are a very good company to deal with. The stuff
- gets to you quick and they have a very good return policy. I might add that I
- personally had problems with mine while using Geos. Seems that my high res
- screen would vaporize or would split in half at the most in-oportune
- moments... So I took mine out. Someone else on Genie had the same problem
- recently... If you want to buy mine I will sell it for $30 gift of time.
- Bob
- ------------
- Category 5, Topic 24
- Message 2 Wed Apr 27, 1994
- N.PHI [Toto] at 01:51 EDT
-
- BTW, I think I may have been the one to complain about possible screen garbage
- related to the 64K VDC chip. On the advice of JBEE, I took the 128 aopart and
- exchanged 8563 chips (80-column video) with a junk 128. I swapped an R7
- version of the 8563 with what turned out to be an R9A, the latest, most
- reliable version - and VOILA, everything is OK! My 64K module stays, and I
- plan to get I-Paint and I-Port soon....
-
- I hear that there are MEGABYTES of naughty GIF's out there waiting to be
- converted for 128 use! heh heh heh
-
- Sorry to diverge from the original topic
- ------------
- Category 5, Topic 24
- Message 3 Mon May 02, 1994
- L.SCHONDER [C128.LOU] at 23:52 EDT
-
- This ain't Kansas, Toto! :D
-
- That IPaint/IPort combo pak looks good, doesn't it?
- ------------
- Category 5, Topic 24
- Message 4 Fri May 06, 1994
- C128.JBEE at 10:10 EDT
-
- > N.PHI [Toto]
- > exchanged 8563 chips (80-column video) with a junk 128. I swapped an R7..
- > reliable version - and VOILA, everything is OK! My 64K module stays, and I
-
- Great :)
- ------------
- Category 5, Topic 24
- Message 5 Fri May 06, 1994
- C128.JBEE at 10:10 EDT
-
- Someone asked about UltraHiRes and getting a text screen back after hitting
- Run/Stop CONTROL. Just type
- @text <CR>
- ------------
-
- 5 ************
- Topic 26 Sun May 15, 1994
- J.SERAFINO at 00:57 EDT
- Sub: midi-player "semidi"
-
- just wondering...
- 1 message(s) total.
- ************
- ------------
- Category 5, Topic 26
- Message 1 Sun May 15, 1994
- J.SERAFINO at 01:07 EDT
-
- I've enjoyed playing stereo sids using midi instruments and Robert Storelle's
- midi player for a while. One of the options of the Midi player allows you to
- set a specific midi channel, voice #, octave and velocity for each of the six
- "sid" notes. This feature would be much more useful if the settings could be
- saved to disk, for example, with the song's name and a different extension.
- When the Midi player loads in a new song, it would load in the new midi setup
- file as well. This would allow you to change midi voices automatically for
- each song. I'd like to modify "semidi player" to include this enhancement.
- does anyone know if Robert is still around? ----JohnS
- ------------
-
- 5 ************
- Topic 37 Tue Sep 06, 1994
- T.BROWN25 [Tim] at 21:38 EDT
- Sub: Hi-Res Printing
-
- I need help compacting character data stored in memory
- 1 message(s) total
- ************
- ************
- Topic 38 Tue Sep 06, 1994
- T.BROWN25 [Tim] at 21:44 EDT
- Sub: Hi-Res Printing
-
- I need help compacting character data stored in memory
-
-
- 1 message(s) total
- ************
-
- 5