frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Yes, the Apple II MouseCard IRQ Is Synced to the VBL

https://www.colino.net/wordpress/en/archives/2025/05/08/yes-the-apple-ii-mousecard-irq-is-synced-to-the-vbl/
46•mmphosis•3h ago

Comments

vardump•2h ago
Such an odd choice not to have a timer interrupt on Apple II and then having to do this kind of trickery on a MouseCard. I guess this saved a few bucks...
zellyn•1h ago
That sentence is the Apple II hardware in a nutshell! save a chip or two but completely scramble the video buffer? Absolutely!

The Commodore 64 is _so_ much better for graphics and sound it's not even funny, but if you look at the timelines, it came along a _while_ later than the Apple II.

AndrewStephens•1h ago
I had an Apple][+ back in the day. You have to understand that the Apple][ predates what we think of as 8-bit computers by a few years and the fact it was cheap enough to mass produce was a minor miracle. Corners were cut everywhere, the Apple][+ didn't even have lowercase letters, a way to detect key up events, or a sensible frame buffer in hires mode.

In its defense, it also predates a lot of what we take for granted. The idea that a game might want to scroll smoothly or update at 50/60 FPS without flickering just didn't occur to people in 1979.

mrob•1h ago
Galaxian was released in 1979 and features a smooth scrolling background and non-flickering sprites, all at 60 FPS. It's especially notable because it was the first game to use dedicated tiles + sprites graphics hardware, which would become the standard for arcade and console hardware and the main reason why those games looked different from computer games. The earlier Space Invaders (1978) had the CPU draw to a computer-style frame buffer with minimal hardware acceleration (only a barrel shifter to speed up horizontal movement). This was too slow to update all the aliens at 60 FPS so they would only speed up as the number remaining decreased (which worked out well from a gameplay point of view, but the original reason was a technical limitation).
AndrewStephens•1h ago
OK, you are technically (the best kind of) correct. Some people were thinking of scrolling and sprites in 1979 but those people were using expensive dedicated hardware that would take a few years to filter down to home computers once people saw the advantages.
wat10000•2m ago
It’s easy to forget how far apart the low and and high end used to be. When the 8-bit Apple ][ was the hot home computer, you could buy machines with 32-bit CPUs with megabytes of RAM, virtual memory, and floating point, running a multitasking, multiuser OS. But such a thing cost more than a luxury car, maybe more than a nice house.

Cost was the innovation for those early home computers. They weren’t doing anything remarkable, except for doing it at a price ordinary people could actually afford. If you were willing to spend more (because the computer ran your payroll, or because the computer got people to drop quarters into it all day long) you could get much more capable stuff.

These days you can drop a few hundred bucks and get something that’s not too far off from the best that money can buy. The main difference between a cheap PC and what passes for a “supercomputer” these days is that the supercomputer has much better interconnects and there’s just a lot more of it.

colinlm•1h ago
To be fair, starting with the Apple IIe, the $C019 softswitch is a good, light way of syncing to VBL. Doing it with the mouse IRQ has an advantage when one requires a mouse, though: it works the same way on the whole line of Apple II computers, starting with the II+.

Without the mouse IRQ, if one wants to support the whole line of Apple II computers, one has to vapor lock on the II+, remember that the IIgs's $C019 high bit means the inverse than the IIe, and the //c requires more trickery around it. (cf https://github.com/cc65/cc65/blob/master/libsrc/apple2/waitv...)

mjevans•31m ago
Everything was _way_ more expensive back then, and the CRT monitors had to be driven with electron beam steering gaps (blanks) while the output cycled to the next row.

Thus there was downtime for an otherwise idle chip to do some work, and yes, saving a few dollars or 10s of dollars in 1970s money was a LOT of money!

empressplay•1h ago
That mouse card is tricky to emulate. I'm surprised actually that the author's shufflepuck port seems to work fine in our Apple IIe emulator, microM8, since our mouse code is a bit of a mess!
NBJack•35m ago
Oof, that website is not vision friendly. I'm all for cool fonts, but thin fonts that are also faded grey? My eyes hurt trying to read it.
Narishma•28m ago
Use reader mode.
alain94040•26m ago
I have fond memories of the IRQ from the mouse card. It was the only source of regular interrupts you could get on the Apple II (that I'm aware of). So in 1987, I tried to write a preemptive switcher, so you could run two code paths at the same time.

The development of that code was very painful. At the time, there was no external debugger. The moment you enabled the interrupt, your interrupt handler would get called, and it would try to program a context switch (something the 6502 is definitely not supposed to do). If you had any bug in there, your Apple II would be completely frozen, all you could do is reboot, and try to guess what went wrong and try again.

Google Measures and Manages Tech Debt

https://newsletter.techworld-with-milan.com/p/how-google-measures-and-manages-tech
1•daigoba66•3m ago•0 comments

Ontario set to begin construction of Canada's first mini nuclear power plant

https://www.cbc.ca/news/canada/toronto/small-modular-reactor-nuclear-power-ontario-construction-1.7529338
1•barbazoo•3m ago•0 comments

Show HN: ZephFlow – Why Apache Flink is dead for edge computing (Open Source)

https://github.com/fleaktech/zephflow-core
1•pinkfluffymochi•4m ago•0 comments

Why Houston Did Not Get a Shuttle (2011)

https://waynehale.wordpress.com/2011/04/14/why-houston-did-not-get-a-shuttle/
1•LorenDB•5m ago•0 comments

Progress toward fusion energy gain as measured against the Lawson criteria

https://www.fusionenergybase.com/articles/continuing-progress-toward-fusion-energy-breakeven-and-gain-as-measured-against-the-lawson-criteria
1•sam•6m ago•0 comments

DNA is maybe 60-750MB of data

https://dynomight.net/dna/
1•MattSayar•7m ago•0 comments

Cybertruck owners won't get Autosteer feature

https://electrek.co/2025/05/07/tesla-bait-and-switch-cybertruck-owners-wont-get-autosteer-feature/
7•1970-01-01•7m ago•1 comments

Senators revive bill to restrict TSA facial recognition at airports

https://www.washingtonpost.com/politics/2025/05/08/tsa-face-recognition-airports-privacy-merkley/
1•bookofjoe•8m ago•1 comments

Beautiful Birds Form Something Like Lasting Friendships

https://www.nytimes.com/2025/05/07/science/birds-friendships-superb-starlings.html
2•marojejian•8m ago•1 comments

Remembering the Emergency TV Broadcast System

https://www.itsabouttv.com/2025/05/remembering-emergency-broadcast-system.html
2•speckx•8m ago•0 comments

Pg-Schema-Diff – Diffing Postgres Schemas and Generating SQL Migrations

https://github.com/stripe/pg-schema-diff
1•cube2222•9m ago•0 comments

Pacman-C: C translation of pacman ROM

https://github.com/mburkley/pacman-c
2•wk_end•11m ago•0 comments

I took a 2-day 'vibe coding' class

https://www.cnbc.com/2025/05/08/i-took-a-2-day-vibe-coding-class-and-successfully-built-a-product.html
1•indigodaddy•15m ago•0 comments

How accurate is 'Conclave' in depicting the papal election process?

https://www.poynter.org/fact-checking/2025/how-accurate-is-conclave-movie-film-pope/
1•speckx•17m ago•0 comments

Minimum Viable Curiousity

https://randsinrepose.com/archives/minimum-viable-curiousity/
1•Garbage•19m ago•0 comments

Land under the country's largest cities is sinking. Here's where – and why

https://www.washingtonpost.com/climate-environment/2025/05/08/sinking-land-cities-inland-infrastructure-damage/
1•littlexsparkee•19m ago•1 comments

What to do if another company is using our brand name without permission?

2•donzog•20m ago•3 comments

Thanks to DOGE, Gumroad's founder has a second job with the VA

https://www.fastcompany.com/91330297/doge-sahil-lavignia-gumroad
2•pulisse•20m ago•0 comments

Uncovering Academic Espionage at Stanford

https://stanfordreview.org/investigation-uncovering-chinese-academic-espionage-at-stanford/
2•ilamont•21m ago•0 comments

"Yes, and " Urbanism

https://www.cremieux.xyz/p/yes-and-urbanism
3•holuponemoment•24m ago•1 comments

Arduino is at work to make bio-based PCBs

https://blog.arduino.cc/2025/04/22/arduino-is-at-work-to-make-bio-based-pcbs/
3•PaulHoule•25m ago•0 comments

Standard Chartered apologizes for $120K Bitcoin price call, 'may be too low'

https://www.cnbc.com/2025/05/08/stanchart-analyst-apologizes-120k-bitcoin-price-call-too-low.html
6•koolba•26m ago•3 comments

Build your own ResponseWriter: safer HTTP in Go

https://anto.pt/articles/go-http-responsewriter
2•todsacerdoti•27m ago•0 comments

What is Koreo (the platform eng kit for K8s)?

https://realkinetic.substack.com/p/what-is-koreo
1•bjflanne•29m ago•0 comments

Open letter against ProtectEU (a.k.a. Chat Control)

https://tuta.com/blog/open-letter-against-protecteu
1•notpushkin•29m ago•0 comments

The All-New Whoop Experience [video]

https://www.youtube.com/watch?v=rZm8VHPkPoI
1•sirodoht•30m ago•0 comments

Task Estimation: Conquering Hofstadter's Law

https://thesearesystems.substack.com/p/task-estimation-conquering-hofstadters
1•jimbru•30m ago•0 comments

AI Focus Groups–and Soon AI Copywriters–Will Make Ads Superhuman

https://every.to/also-true-for-humans/ai-focus-groups-are-a-step-on-the-path-to-superhuman-advertising
1•virtual_rf•30m ago•0 comments

Computer use agent with RL training for day trading?

1•iiTsEddy•32m ago•1 comments

Cloudflare CEO: AI is killing the business model of the web

https://searchengineland.com/ai-killing-web-business-model-455157
9•kordlessagain•32m ago•3 comments