Search found 98 matches

by CurtisP
Sun Apr 03, 2011 11:24 am
Forum: General Topics
Topic: New Vic20 Portable
Replies: 8
Views: 2324

that is a nifty little device
by CurtisP
Thu Mar 24, 2011 3:34 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

Out of curiosity, if you compile a simple "Hello World" program in CC65, what will be the size of the resulting object code?
by CurtisP
Thu Mar 03, 2011 11:01 pm
Forum: Hardware and Tech
Topic: Studio Monitors
Replies: 10
Views: 2123

A local TV station here used to have Commodore 1702 monitors in their studio.

I doubt you will get a much better picture from anything else.
by CurtisP
Thu Mar 03, 2011 10:55 pm
Forum: General Topics
Topic: Announcement: UberCassette V0.01!
Replies: 5
Views: 1446

I like this project. Being able to handle tapes from different computers would be very handy.
by CurtisP
Sat Feb 26, 2011 2:04 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

Mike wrote:No need to test it, because the routine won't work anyway, for several reasons.
Thanks for the input. I really think that any kind of Bressenham or Mid-Point Algorithm is outside the scope of small or tiny languages.
by CurtisP
Thu Feb 24, 2011 11:16 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

OK, an elipse drawing program would look something like this (i say something like this, because this code is untested). REM Draw Ellipse using Bresenham Algorithm IMPORT "LIB" INCLUDE "MACROS" IMPORT "GFX" INCLUDE "MACROGFX" IMPORT "MTH" INCLUDE &qu...
by CurtisP
Tue Feb 22, 2011 10:28 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

O.K., that being cleared up, here's one question: How would you implement an ellipse drawing routine in TCB? A version which only uses MINIGRAFIK commands could be written as follows (all variables and expressions contain integer values): Well dang. All variations of the mid-point algorithm require...
by CurtisP
Mon Feb 21, 2011 9:01 pm
Forum: Programming
Topic: WIP: VICdesk office suite
Replies: 32
Views: 11076

@CurtisP: I don't think so. The desktop will simply launch external applications AFAIK - but please refer to Mike about this. It's always possible to change :P . So MINIGRAFIK will aready be loaded, when Vicdesk is running. Assumedly, any program that Vicdesk launches could then make use of MINIGRA...
by CurtisP
Mon Feb 21, 2011 8:58 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

Hand optimized code is almost always going to beat compiler generated code.

I tested all the sixteen-bit compare code I had writtem and surprisingly, it worked perfectly.
by CurtisP
Sun Feb 20, 2011 6:39 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

What my example code didn't show was the ability to include mathmatical expressions within the comparison. ;IF A!+B!-C! = D! THEN LET E! = G! & H! LDY wrdA+1 LDA wrdA CLC ADC wrdB PHA TYA ADC wrdB+1 TAY PLA SEC SBC wrdC PHA TYA SBC wrdC+1 TAY PLA CPY wrdD+1 BNE clb00012 CMP wrdD BNE clb00012 LDY...
by CurtisP
Sat Feb 19, 2011 10:19 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

I just finished coding 16 bit comparisons. I still have to test them, but here is the code that I am currently generating: ;IF FOO! = BAR! THEN GOSUB YES LDY wrdFOO+1 LDA wrdFOO CPY wrdBAR+1 BNE clb00001 CMP wrdBAR BNE clb00001 JSR lblYES clb00001 ;IF FOO! <> BAR! THEN GOSUB YES LDY wrdFOO+1 LDA wrd...
by CurtisP
Sat Feb 19, 2011 8:45 pm
Forum: Programming
Topic: WIP: VICdesk office suite
Replies: 32
Views: 11076

So will this have it's own kernal (like GEOS) and a set memory space for apps. I would like to be able to create library files for TCB02 for creating VicDesk programs.
by CurtisP
Sat Feb 19, 2011 12:30 am
Forum: Programming
Topic: Shortening BASIC-programs
Replies: 8
Views: 2810

Jeff-20 wrote:I feel like I'm pretty good at crunching, but this is really interesting. I wonder if it can intelligently handle GOTOs and GOSUBs. I also use a lot of ON statements.
One of my tricks is to simulate a REPEAT loop using FOR NEXT

Code: Select all

FORZ=0TO1:GETZ$:Z=LEN(Z):NEXT:REM do more stuff
by CurtisP
Sat Feb 19, 2011 12:27 am
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

16 bit variables weren't quite as hard as I thought they would be. I've got them working in expressions and functions and in the INCR, DECR, SHIFTL, and SHIFTR commands. I just need to add some extra parameter checking to function calls and upgrade conditionals to 16 bits. Hopefully I will have some...
by CurtisP
Fri Feb 18, 2011 7:08 pm
Forum: Emulation and Cross Development
Topic: Tiny Basic Compiler
Replies: 34
Views: 14802

O.K., that being cleared up, here's one question: How would you implement an ellipse drawing routine in TCB? A version which only uses MINIGRAFIK commands could be written as follows (all variables and expressions contain integer values): I will need to implement 16-bit (word) variables. My main st...