Search found 42 matches

by magetoo
Tue Nov 15, 2016 5:58 pm
Forum: General Discussions
Topic: OT: Risks of badly written 6502 emulation code
Replies: 8
Views: 1565

Re: OT: Risks of badly written 6502 emulation code

You don't need heat for the JVM attack either, that was just the mechanism they used to speed up the process; the shocking aspect of it is that in theory the same attack should work without any physical access or leaky abstractions if you can just leave it for long enough to have a stray cosmic ray ...
by magetoo
Tue Nov 15, 2016 4:42 pm
Forum: General Discussions
Topic: OT: Risks of badly written 6502 emulation code
Replies: 8
Views: 1565

Re: OT: Risks of badly written 6502 emulation code

Sounds interesting, I will check that out.

Since we're already off topic, my favorite is this clever attack against a Java VM that assumes no conventional write access at all:

Using Memory Errors to Attack a Virtual Machine (PDF, sorry)

It works by allocating lots of objects in a way that ...
by magetoo
Tue Nov 15, 2016 3:18 pm
Forum: General Discussions
Topic: OT: Risks of badly written 6502 emulation code
Replies: 8
Views: 1565

Re: OT: Risks of badly written 6502 emulation code

Thanks for sharing, that's a really cool exploit.

The part at the end about 6502 code as a "scripting language" and the prevalence of various languages in all sorts of places you wouldn't expect makes one think. There has to be an enormous attack surface here that gets little scrutiny.

I wouldn't ...
by magetoo
Fri Oct 28, 2016 6:29 pm
Forum: Programmable Logic
Topic: My approach to interrupt routing
Replies: 13
Views: 9071

Re: My approach to interrupt routing


Priority decoder output better should be stable when the multiplexer switches, that's all.
Else, some of the priority decoder delay would add to the memory read delay.

If the priority encoder is slow, that just means that the IRQ line is pulled down a few ns later (from the /GS output). The ...
by magetoo
Fri Oct 28, 2016 10:02 am
Forum: Programmable Logic
Topic: My approach to interrupt routing
Replies: 13
Views: 9071

Re: My approach to interrupt routing


Well, if your CPU would be running at 20MHz, one clock cycle would be 50ns, and a 40ns delay probably would be an issue then... ;)

Again, why? What could you possibly be doing that would be affected by an interrupt coming in one cycle late? (A maximum of one cycle late, with worst-case timings ...
by magetoo
Fri Oct 28, 2016 1:31 am
Forum: Programmable Logic
Topic: My approach to interrupt routing
Replies: 13
Views: 9071

Re: My approach to interrupt routing


Incidentally, priority encoders are relatively slow devices, as they have a lot of gates.
Priority encoding is a good job for a PLD.
74F148 seems to be out of production, and there seems to be no 74AC\ACT148.
BTW: maybe 20ns propagation delay at 5V for a 74HC148 from TI.

The datasheet says ...
by magetoo
Mon Sep 19, 2016 9:56 am
Forum: General Discussions
Topic: request: 6502 in early Dr. Dobb's Journal
Replies: 22
Views: 12053

Re: request: 6502 in early Dr. Dobb's Journal

The very first link is now dead, but fortunately it's been archived.
by magetoo
Wed Sep 14, 2016 12:20 pm
Forum: Hardware
Topic: 6509 paging
Replies: 19
Views: 3829

Re: 6509 paging

The reason for using page one is precisely because that's where the stack normally lives. If the CPU is acting weird, executing code out of there, that's a fairly unique signal that can be used to control banking on a cycle-by-cycle basis without interfering with anything else. Regular stack ...
by magetoo
Tue Sep 13, 2016 10:04 pm
Forum: Hardware
Topic: 6509 paging
Replies: 19
Views: 3829

Re: 6509 paging

Or use page one? Thinking out loud here:

Decoding code fetches from page 1 should be relatively easy: P1_FLAG=SYNC AND ( [A8-A15]=01 ). Connect this signal to logic that forces the bank bits to be all zeroes (or all ones). You could then have small utility routines there, that are always executing ...
by magetoo
Tue Sep 13, 2016 8:20 pm
Forum: Hardware
Topic: Vulcan-74 - A 6502 Powered Retro MegaProject
Replies: 923
Views: 329190

Re: Vulcan-74 - A 6502 Compatible Retro MegaProject


This may sound strange, but I have decided to make the schematics and BIT files freely available, but do not plan on releasing my HDL source.

Yep, I'll confirm that does sound strange to me. I've been doodling on a music project for a while (on paper - logic design instead of sudoku) and I've ...
by magetoo
Mon Sep 12, 2016 2:51 pm
Forum: General Discussions
Topic: OT:Vacuum florescent display as a msi vacuum tube ic?
Replies: 21
Views: 3682

Re: Vacuum florescent display as a msi vacuum tube ic?


Vfds are basically just an array of tiny vacuum tube "transistors", and have been used in ham radios already as amplifiers...

Seems like something like this would fit the bill: KORG INC and Noritake Co., Limited Release Innovative Vacuum Tube: the Nutube

It even seems to be a DIP! No idea ...
by magetoo
Thu Sep 01, 2016 1:15 pm
Forum: Nostalgia
Topic: OT: 72 or 30 pin SIMM's anyone?
Replies: 8
Views: 1427

Re: OT: 72 or 30 pin SIMM's anyone?

That's a lot of memory. Do you have plans for hardware that can use them?

DRAM seems like a pain to me when there is SRAM - but I've got tons of old memory modules too, would be nice to be able to use them.
by magetoo
Tue Jul 26, 2016 9:37 am
Forum: Hardware
Topic: Synchronising two clocks?
Replies: 9
Views: 1633

Re: Synchronising two clocks?

This is the fun part where you get to pore over datasheets for hours on end, alternatively hook up several different clock ICs to a scope and observe how they react in every possible variation of inputs.

Generally, you can't assume a thing. If the datasheet doesn't specify a particular relationship ...
by magetoo
Thu Jul 14, 2016 5:45 pm
Forum: Hardware
Topic: NXP "INDUSTRIAL" UARTs
Replies: 14
Views: 5461

Re: NXP "INDUSTRIAL" UARTs


If you could start the receiver clock at the perfect time and only wanted to sample once per bit, you could start the clock when you sense the valid leading edge of the start bit, then start sampling half a cycle later (we're already accounting for slew rate), and every cycle after that, until you ...
by magetoo
Thu Jul 14, 2016 4:52 am
Forum: Hardware
Topic: NXP "INDUSTRIAL" UARTs
Replies: 14
Views: 5461

Re: NXP "INDUSTRIAL" UARTs

Take a look at CSRA[3:0] , CSRA[7:4] , etc., described on page 18 of the 26C92 data sheet, to see how to run at 921.6 Kbps.

I've read the datasheet too, and I see a different picture.

Page 2, "DESCRIPTION":
[Each] receiver and transmitter can select its operating speed as one of 27 fixed baud ...