Live data from Hacker News

Undocumented 8086 instructions, explained by the microcode

righto.com

21–30 of 104 posts

Re: Undocumented 8086 instructions, explained by the microcode

#21

Based on AAM using CORD for the division operation will D4 00 generate the same division by zero error as a DIV with a zero divisor? (I can’t think of any reason this would be useful but I do like thinking about edge cases and how things break.)

My transistor-level simulator shows that the 8086 will generate a divide by 0 interrupt if you give the AAM instruction a divisor of 0. But I haven't tried this on a real chip.

Re: Undocumented 8086 instructions, explained by the microcode

#22

Earlier quoted context omitted.

I am always amazed how many tech orientated people don't use any kind of ad blocking

Having AdBlock extension, but like all my extensions also have "This can read and change site data > when you click the extension" while turn on to any domain that "misbehave" with sticky ads, videos or whatever annoying flashing things. Otherwise I'm just hurting content creators for no good reason. I would not enable an extension on any domain i input my email, password, or otherwise have sensitive private informat…

> Otherwise I'm just hurting content creators for no good reason.

It's less about the content creators and more about supporting a system / business model that isn't really sustainable and reliant on business practices that distract and in many cases actively harm consumers. Most content creators have Patreon profiles or some similar service for taking donations in a structured and community-driven way, why don't you use an adblocker and donate there?

Re: Undocumented 8086 instructions, explained by the microcode

#23

Earlier quoted context omitted.

What ads? Didn't seen any ads when visiting the page. Are you browsing the web without uBlock Origin by any chance?

I am always amazed how many tech orientated people don't use any kind of ad blocking

I use Brave browser. It has built in ad blocker

Re: Undocumented 8086 instructions, explained by the microcode

#24
post #18
post #15

> The undocumented C9 opcode is identical to the documented CB, far return instruction. I remember this. Once ... gosh, it's hard to believe how long ago that was now, but once I knew the entire Z80 opcode table off head. I could read the Z80 machine code and disassemble it. High school crowded that stuff out of my head, I went to a special math school, it was very very hard. Except... C9 was RET (and the Z80 is an e…

I'm the same with LDA immediate = A9 in 6502 machine code, from my C64 days. It's disturbing how strongly burned-in those neurons are ...

SYS 64738

Re: Undocumented 8086 instructions, explained by the microcode

#25

Aside: If you are writing stuff this good (and this niche) I would say ditch the ads. They really will turn off the audience you want to attract. Or at least use one of the developer-focused ad networks that just inline ads not pop them up.

What ads? Didn't seen any ads when visiting the page. Are you browsing the web without uBlock Origin by any chance?

Yes, when you have a bunch of devices, sometimes one of them doesn't have it set up yet.

Re: Undocumented 8086 instructions, explained by the microcode

#26

Aside: If you are writing stuff this good (and this niche) I would say ditch the ads. They really will turn off the audience you want to attract. Or at least use one of the developer-focused ad networks that just inline ads not pop them up.

I’m on iOS and the ad was unobtrusive. I’m very happy to support Ken. Unless the ads are more disruptive on other platforms I’d say leave ‘em in.

Another factor though is for tech people:

1. Either they block the ad, in which case no revenue anyway.

2. Or they don't block it and it looks like an ad ridden site at first glance, so makes some people kneejerk close it.

Re: Undocumented 8086 instructions, explained by the microcode

#27
post #15

> The undocumented C9 opcode is identical to the documented CB, far return instruction. I remember this. Once ... gosh, it's hard to believe how long ago that was now, but once I knew the entire Z80 opcode table off head. I could read the Z80 machine code and disassemble it. High school crowded that stuff out of my head, I went to a special math school, it was very very hard. Except... C9 was RET (and the Z80 is an e…

I have most of the single-byte x86 opcodes still memorised - as many others have independently discovered, it's much easier in octal.

    95 ba 07 01 cd 21 c3 48 65 6c 6c 6f 20 77 6f 72 6c 64 21 0d 0a 24

Re: Undocumented 8086 instructions, explained by the microcode

#28
post #21

Based on AAM using CORD for the division operation will D4 00 generate the same division by zero error as a DIV with a zero divisor? (I can’t think of any reason this would be useful but I do like thinking about edge cases and how things break.)

My transistor-level simulator shows that the 8086 will generate a divide by 0 interrupt if you give the AAM instruction a divisor of 0. But I haven't tried this on a real chip.

It does on newer physical hardware too.

Re: Undocumented 8086 instructions, explained by the microcode

#29

Aside: If you are writing stuff this good (and this niche) I would say ditch the ads. They really will turn off the audience you want to attract. Or at least use one of the developer-focused ad networks that just inline ads not pop them up.

> They really will turn off the audience you want to attract.

Unless you were about to donate a few pennies to the author, I'm not sure "freeloaders" is the audience they were aiming for.

Re: Undocumented 8086 instructions, explained by the microcode

#30

Earlier quoted context omitted.

I’m on iOS and the ad was unobtrusive. I’m very happy to support Ken. Unless the ads are more disruptive on other platforms I’d say leave ‘em in.

Another factor though is for tech people: 1. Either they block the ad, in which case no revenue anyway. 2. Or they don't block it and it looks like an ad ridden site at first glance, so makes some people kneejerk close it.

I use an adblocker, but even if I didn’t, I’d have a very hard time to think that someone who is actually interested in the subject would think this is an “ad ridden” site and close it. The quality of the blog posts are apparent immediately.
Post reply on HN