Search found 8 matches

by electronicresourceguy
Mon Jan 11, 2010 4:21 am
Forum: Forth
Topic: ROMable Forth
Replies: 30
Views: 35013

KEY and EMIT are primarily for human I/O, which is only a minor part of my workbench computer's I/O; and even then, there still needs to be code to take care of the details of how to feed data to the LCD, scan the keypad, bring data in from a UART, etc.. If the newbie doesn't have those written and ...
by electronicresourceguy
Mon Jan 11, 2010 12:31 am
Forum: Forth
Topic: ROMable Forth
Replies: 30
Views: 35013

It impacts Forth runtime performance, but has the advantage that it makes writing event-driven software in high-level Forth somewhat easier. I think you'll find its expressivity beneficial in real-world applications.

Here is the overhead in my NEXT for the zero overhead implementation:
pNEXT LDY ...
by electronicresourceguy
Sun Jan 10, 2010 8:15 pm
Forum: Forth
Topic: ROMable Forth
Replies: 30
Views: 35013

KEY can reliably return 0 as a valid character, particularly if you're using the console interface to receive a binary file. You really ought to be using KEY? to query whether or not a byte from standard input is available or not. This also significantly benefits the performance of multitasking ...
by electronicresourceguy
Sun Jan 10, 2010 11:34 am
Forum: Forth
Topic: ROMable Forth
Replies: 30
Views: 35013

Is there a compact ROMable version of Forth?
I have been working on exactly that for the last 2.7 (3 in April) years.

What has kept me from publishing my own '02 Forth is that there are still a lot of fragments left that one particular company could claim a copyright on.
That is also my ...
by electronicresourceguy
Tue Jul 28, 2009 8:25 am
Forum: General Discussions
Topic: Software based reset logic
Replies: 11
Views: 5489

Yes, that is the challenge, SRAM may hold on to the data.

How did the 10uF capacitor not bleed out on the power rail?

I suppose that I could place a circuit to bleed off the capacitor when the power is off.
by electronicresourceguy
Tue Jul 28, 2009 8:03 am
Forum: General Discussions
Topic: Software based reset logic
Replies: 11
Views: 5489

The idea here is to not use any hardware other than ram. The 6502 simulator I am using always sets ram to 0's upon first start. Reset checks this location for 0 or not and then can decide where to go. In real ram, I have no such garuntee of an initial value upon power up.
by electronicresourceguy
Tue Jul 28, 2009 6:54 am
Forum: General Discussions
Topic: Software based reset logic
Replies: 11
Views: 5489

Software based reset logic

Does anyone know of a software technique for distinguishing between cold and warm resets?

Assuming that the 6502 has a power on reset circuit, and a user key for issuing a reset, I would like the power on resets to vector to a cold start area and the user key resets vector to a warm start area of ...
by electronicresourceguy
Mon Apr 06, 2009 6:58 am
Forum: Forth
Topic: FIG forth, is it Public domain?
Replies: 4
Views: 6611

FIG forth, is it Public domain?

The ZIP file for FIG on the Source Code page has two versions. The readme file says the following:

FIG6502.ASM is the original FIG listing, for a Rockwell native assembler.
FIG6502.ASX is my modified listing, which will assemble
with MAS65 macro cross assembler, available from
http://www2 ...