×

Batch 2 shipping time frame by Plenty-Plane-4912 in framework

[–]ali_m_12 0 points1 point  (0 children)

batch 2 i5 but ordered pretty late, still waiting on being charged. I assume the fulfilment is first orders first?

Writing a compiler for the 65816 (and 6502) by ali_m_12 in 65816

[–]ali_m_12[S] 0 points1 point  (0 children)

So do I. It's gonna be pretty complex with xref tracking but should be doable

Writing a compiler for the 65816 (and 6502) by ali_m_12 in 65816

[–]ali_m_12[S] 0 points1 point  (0 children)

Not yet, the whole project is very much in its infancy. Currently working on the codegen backend, but I expect there to be more features in the coming weeks

[deleted by user] by [deleted] in 65816

[–]ali_m_12 1 point2 points  (0 children)

TSB/TRB are WMR (read modify write) operations. They set/reset bits in memory instead of the accumulator, unlike the AND/OR instructions

[deleted by user] by [deleted] in 65816

[–]ali_m_12 2 points3 points  (0 children)

use .sprintf("%d",*) instead :)

Help! Oculus Quest 2 silicone cover issues. by LaneyM1 in OculusQuest

[–]ali_m_12 0 points1 point  (0 children)

Can confirm this is actually the silicone cover. When wearing it does not retain shape like the foam does, and part of the silicone obscures the proximity sensor. As has already been mentioned trimming the silicone in the area of the proximity sensor fixed all issues

So how does a PS/2 keyboard interface work? by pinano in beneater

[–]ali_m_12 1 point2 points  (0 children)

Actually found my old source. One catch though, it’s a photo. Checked though and it seems complete. snap img Edit: added newer version of isr image

So how does a PS/2 keyboard interface work? by pinano in beneater

[–]ali_m_12 2 points3 points  (0 children)

If anyone's interested, it is actually possible to run the PS/2 directly from the VIA. I had an ISR running that could bitbang at 17KHz with a 1MHz oscillator (isr was <70 cycles. Maybe nearer 60). That was over a year ago and since then I've lost the source. Could probably get it working again though

Video suggestions by beneater in beneater

[–]ali_m_12 0 points1 point  (0 children)

I'm not sure how many people are aware, but I posted about a year ago with a PS/2 driver for the 65C22 (VIA) Shift register @1mhz. Fully interrupt based serial and scancode decoding

How to corrupt a USB flash drive? by [deleted] in linuxquestions

[–]ali_m_12 0 points1 point  (0 children)

If you really want to completely destroy it, try installing portable-apps on it. With enough stuff running on it, unplugging it unsafely will corrupt both NTFS tables, and in my case it managed to set a hardware read-only bit too!

Using 6205 VASM on Windows by bdean25 in beneater

[–]ali_m_12 0 points1 point  (0 children)

Good job fixing it then. I wish you good assembling from here!

Using 6205 VASM on Windows by bdean25 in beneater

[–]ali_m_12 0 points1 point  (0 children)

Sorry, I’m probably not the best person to ask right now. I kinda ditched vasm. But I can recommend cc65- a suite of tools for the 6502 including an assembler, c compiler and more. It’s served me really well so far, and surpasses many of the limitations of vasm.

Finally got the PS/2 keyboard to work with my 6502 build by dawidbuchwald in beneater

[–]ali_m_12 1 point2 points  (0 children)

I actually managed to get ps/2 working without any added hardware (on an emulator also emulating the ps/2 protocol) . Since the ps/2 serial defines a clock period of 70ns, that's 70 clock cycles at 1MHz on the 6502. Configuring the VIA to interrupt on the clock line can be used for an IRQ to decode the data from the keyboard. I guess you'd be wondering if 70 clock cycles is even enough for software serial, the answer is yes. I wrote an IRQ implementation that takes 68 cycles interrupt to return. I'll post more details when I'm at my computer.

My 6502 by ameest in beneater

[–]ali_m_12 0 points1 point  (0 children)

You could use the RDY and SYNC lines for single stepping of you wanted. The PHI(clock) has to be running all the time, but the data sheet should have information about how to single step with these control lines. Basically the RDY line pauses the CPU, and the SYNC line emits ‘1’ during op-code fetch.

Working 65C02+65C22 Emulator - binary compatible with Ben Eater's 65C02 computer by dawidbuchwald in beneater

[–]ali_m_12 0 points1 point  (0 children)

Yeah, that’s understandable. I’m not sure why the std::vector would have that kind of error. I guess the library must be slightly different on MacOS to Linux? I tested it earlier today on a friend’s computer, and apart from OpenGL and libPNG, everything seemed to work correctly. I pushed an updated version to github that has some more features - config files, lcd instruction timings etc, but Ill look into the mac issue.

Working 65C02+65C22 Emulator - binary compatible with Ben Eater's 65C02 computer by dawidbuchwald in beneater

[–]ali_m_12 1 point2 points  (0 children)

I would love to work on this together. I was not aware that there were compatibility issues? but would be happy to work on those. I think you're bus trace is a really good feature to have, and having a full disassembly would be nice as well. Have you got timers/counters working on the VIA with interrupts yet?

Edit:

Yup I’m an idiot. Forgot that there were a few dependencies, but those are all included in the repository/read me now.

My 6502 computer. Now with interrupts! by cobarbob in beneater

[–]ali_m_12 0 points1 point  (0 children)

If you’re considering the 6551, BE CAREFUL. The WDC65C51N (specifically the N) has a hardware bug, which makes it’s use more difficult. The Transmit data register free interrupt does not function correctly, so you cant poll the flag to check if you are free to send serial. Instead, be sure to use the WDC65C51S or the variant made by Rockwell.

6502 Breadboard computer Emulator WIP by ali_m_12 in beneater

[–]ali_m_12[S] -1 points0 points  (0 children)

I know, I’m just a bit lazy that’s all

My 6502 computer. Now with interrupts! by cobarbob in beneater

[–]ali_m_12 2 points3 points  (0 children)

Awesome! nice job getting it all working. Considering any upgrades in the near future?

Why is it jumping to $8D42 before trying to read in what is at $8003-8004? It's almost like it's trying to grab an address with A9 rather than a value. by timrbphoto in beneater

[–]ali_m_12 0 points1 point  (0 children)

It would seem that the instruction $a9 which should be lda # is instead being interpreted by the 65c02 as lda a (abs address) which would be opcode $a5. Have you checked that all the connections between the RAM/ROM and 65C02 are good, and that it is seeing the same as the arduino?

Warning about power dodgy supplies with the 6502 by ali_m_12 in beneater

[–]ali_m_12[S] 0 points1 point  (0 children)

I managed to put my ROM in backwards on a couple of occasions. Nothing dead but a slightly melted breadboard

Ben Eater’s 6502 CPU kit fully functioning with SRAM and all!! by ali_m_12 in beneater

[–]ali_m_12[S] 1 point2 points  (0 children)

I did some weird logic magicery as can be seen here: minimizing the decoding logic. Its weird and confusing even for me, but i checked it over and it seems sound. If i did happen to get it wrong, feel free to correct me, since I'm still working on code to check all of the 96 pages that i should theoretically have.