Search found 51 matches

by Thowllly
Wed Sep 14, 2016 7:58 am
Forum: Programming
Topic: 6502 redundant, missed, and suggested features
Replies: 129
Views: 20026

Re: 6502 redundant, missed, and suggested features

As far as proof of 6502's performance relative to other CPUs with a normalized clock , all you need to do is count the cycles in your particular application. Yes, yes, the 68000 can pull off 2 MIPS performance at 8MHz, but know what? A 65816 at 8MHz will pull off 4 MIPS on average. At this point ...
by Thowllly
Thu Mar 06, 2014 9:21 am
Forum: Programmable Logic
Topic: A 65Org32 variant - combining opcode and operand
Replies: 43
Views: 10264

Re: A 65Org32 variant - combining opcode and operand

Yes, I forgot about the times they imply a high "1" bit that is not expressed. To do an addition though, the smaller number has to be right-shifted, ie, non-normalized, to line up bits properly for the addition; and to line them up, the smaller number has to be shifted all the way to the bit bucket ...
by Thowllly
Thu Mar 06, 2014 8:42 am
Forum: Programmable Logic
Topic: A 65Org32 variant - combining opcode and operand
Replies: 43
Views: 10264

Re: FFT overflow trouble

BTW, a similar thing can happen with floating-point too, depending on the precision used. Exponent adjustment prevents overflow; but for a given number of bits of mantissa, if you add enough input numbers together, you will reach intermediate results high enough that many of the following input ...
by Thowllly
Tue Jan 25, 2011 7:28 pm
Forum: Programming
Topic: Convert numbers to C64 floating point compact form?
Replies: 30
Views: 13022

If anyone can find a binary representation for 0.3 or 0.1, let me know. While you're at it, publish a paper in ACM or IEEE Computer, and earn yourself a position at some prestigious university. Even with *80* bits of precision, you can't represent either number precisely, and so when printing ...
by Thowllly
Tue Jan 25, 2011 10:04 am
Forum: Programming
Topic: Convert numbers to C64 floating point compact form?
Replies: 30
Views: 13022

Re: Convert numbers to C64 floating point compact form?

Hi all,
for some fun, I am attempting to make a 'compiler' that compiles a high-level language similar to Pascal (Delphi) into C64 assembly code, and I have some number questions if I may :)
C64 assembly code? Is that anything like 6502 assembly language? <Grin>

hahaha! Good one :)

I need ...
by Thowllly
Sat Jun 19, 2010 7:04 pm
Forum: General Discussions
Topic: Found online book: Programming the 65816 by William Labiak
Replies: 8
Views: 3550

The pages came up for me, but it took a looooooooong time.

I'm not sure if the book of Impossible Routines would be very useful or entirely useless.
I couldn't find that one. Where is it?
A little more than halfway down the page.
http://www.bombjack.org/commodore/books/pdf/Impossible_Routines ...
by Thowllly
Tue Feb 09, 2010 10:16 pm
Forum: SBC- Series Projects
Topic: Bootstrapping an SBC
Replies: 25
Views: 57169

I think you may be referring to the config of the 6850? We've performed a Master Reset, but have we left it in a 7bit mode? Yeah, I meant the config of the 6850. I didn't see anything about what a Master reset actually did, does it set a 8 bit data word size? if it doesn't, is Master reset needed ...
by Thowllly
Tue Feb 09, 2010 9:48 pm
Forum: SBC- Series Projects
Topic: Bootstrapping an SBC
Replies: 25
Views: 57169

I was looking at the docs (because I wondered if it was possible to do LSR status) and noticed that it appears that the code selects 7bit word length, if I read it right. It would be a bit dificult to write a second stage bootloader that couldn't even use load or store opcodes :)



edit: if we dont ...
by Thowllly
Tue Feb 09, 2010 7:03 pm
Forum: SBC- Series Projects
Topic: Bootstrapping an SBC
Replies: 25
Views: 57169

Couldn't you also get rid of the INX if you used 0 as an EOF byte?
by Thowllly
Thu Jan 22, 2009 6:57 am
Forum: Programming
Topic: instruction logic reference?
Replies: 19
Views: 12495

Who said anything at all about shorting the pin high? I certainly never said that.

Sorry, didn't mean to imply that you suggested shortening the pin high, I was still thinking in the context of what I wrote earlier. If you just pull it low with existing HW you don't need an extra or gate to ...
by Thowllly
Wed Jan 21, 2009 7:44 am
Forum: Programming
Topic: instruction logic reference?
Replies: 19
Views: 12495


"oVerflow Flag (P.V)"
-Third use: Sticky input bit. Connected to the SO pin.


As an input or output?
Ie. does the pin effect the register or vice versa?
Input, the pin effect the register. I think it's edge sensitive, but don't remember which edge.


"How can I disable Non-Maskable Interrupts ...
by Thowllly
Thu Jan 08, 2009 3:33 am
Forum: Programming
Topic: instruction logic reference?
Replies: 19
Views: 12495

"How can I disable Non-Maskable Interrupts?"
-By not acknowledging a NMI you'll effectively mask further NMIs

This is actually false; the CPU will happily attempt to handle another NMI if the interrupt pin is strobed. "Acknowledging" the NMI is implicit within the CPU.

External logic is ...
by Thowllly
Thu Jan 08, 2009 12:57 am
Forum: Programming
Topic: instruction logic reference?
Replies: 19
Views: 12495

if you/others can/will highlight to me any mistakes on my page, they WILL be corrected!

Not exactly mistakes, just thought I'd mention....



"oVerflow Flag (P.V)"
-Third use: Sticky input bit. Connected to the SO pin.


"What is an Interrupt?"
-Strictly speaking, it's the voltage itself that ...
by Thowllly
Fri Jul 18, 2008 9:46 pm
Forum: General Discussions
Topic: 6502 Code Reproduces Bug -- Curiousity
Replies: 3
Views: 3365

I don't know what bug the code is supposed to show. That executing illegal opcodes leads to various undefined results is no surprise, that's why they're called illegal opcodes.

All the illegal opcodes have been documented in various texts, like this one: http://www.ffd2.com/fridge/docs/6502-NMOS ...
by Thowllly
Fri Jul 18, 2008 9:30 pm
Forum: Emulation and Simulation
Topic: testing my 6502 cpu emulator
Replies: 5
Views: 9423

I remember running a c64 program that would test all opcodes for correct behavior, but I don't remember what it was called or anything. Searching for 'c64 emulator test suite' returns some results, like http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/pc64/ (near bottom). I don't know ...