Search found 24 matches

by buzbard
Tue Jul 08, 2014 2:26 pm
Forum: BASIC
Topic: Basic communication with serial port via vice
Replies: 7
Views: 10552

Re: Basic communication with serial port via vice

The keyword GET can only be used in a running program, BASIC won't allow you to just type it by itself.
by buzbard
Tue Jul 01, 2014 2:31 pm
Forum: BASIC
Topic: switch... case 1:
Replies: 13
Views: 15016

Re: switch... case 1:

Except "FRE" is a keyword and line 19 will cause a Syntax Error.
by buzbard
Mon Jun 30, 2014 5:43 pm
Forum: BASIC
Topic: switch... case 1:
Replies: 13
Views: 15016

Re: switch... case 1:

Good tip Buzbard, I suppose it depends on what you're doing but I'd still be tempted to put a sanity check in there, like: 20 get case$: on val(case$) gosub 100, 120, 140, 160, 180, 200: if case$="" then goto 20 or something. Although that may not be required in all cases. You could do th...
by buzbard
Mon Jun 30, 2014 2:49 pm
Forum: BASIC
Topic: switch... case 1:
Replies: 13
Views: 15016

Re: switch... case 1:

There's really no need to use an "IF" statement here since the "ON" statement is a variant of the "IF" statement. The "ON" statement doesn't have a condition for zero, the first condition is always one. Your list of conditions after the "GOSUB" will ...
by buzbard
Thu Jun 12, 2014 1:13 am
Forum: Assembly
Topic: Writing contents of a memory address to screen
Replies: 11
Views: 12011

Re: Writing contents of a memory address to screen

The Overflow flag (V) is being set by the ADC opcode in the second line. It has to do with "Twos Compliment" addition. A byte can be in the range of 0 to 255 but to represent negative numbers the processor uses 0 to 127 then values after that will have the high bit set (128) which represen...
by buzbard
Mon Jun 09, 2014 9:33 pm
Forum: Assembly
Topic: Writing contents of a memory address to screen
Replies: 11
Views: 12011

Re: Writing contents of a memory address to screen

There's also a handy routine built into the BASIC ROM at $BDCD, it's part of the LIST command that prints the line number, just load the Accumulator with the high byte and the .X register with the low byte then jsr to the routine.

Code: Select all

LDA #$00
LDX #$96
JSR $BDCD
For the VIC20 use $DDCD.
by buzbard
Mon Jun 09, 2014 9:22 pm
Forum: BASIC
Topic: Center (centre) and right justify.
Replies: 5
Views: 6698

Re: Center (centre) and right justify.

Just remove the space between "tab" and "(".
BASIC thinks it's a array variable that way instead of a function.
by buzbard
Fri May 16, 2014 2:36 pm
Forum: BASIC
Topic: print at x,y equivalent
Replies: 18
Views: 33308

Re: print at x,y equivalent

If you're looking for a way to "print" to the last screen position without "poking", try printing your last character to the space just before the last followed by a cursor-left and an insert.
by buzbard
Thu Apr 24, 2014 3:10 pm
Forum: Assembly
Topic: Codebase planned downtime
Replies: 1
Views: 2460

Re: Codebase planned downtime

Thanks for letting us know.

Do you know about when this will happen?
by buzbard
Fri Apr 18, 2014 7:26 pm
Forum: Help!
Topic: GB64 v11 extras - where to find?
Replies: 5
Views: 6672

Re: GB64 v11 extras - where to find?

This is all I've found so far: GB64 v11 There are some extras but I think they are just upgrades from v10 [Edit] After looking through that forum thread I found a link to a torrent for GB64 V11 Complete 8.85 Gigabytes! :shock: It consists of 4 ".iso" files (2 CDs, 2 DVDs, Cover image and C...