Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Charlie Balogh (chainq@mastodon.social)'s status on Sunday, 17-Nov-2024 11:32:33 UTC Charlie Balogh Charlie Balogh
    • root42

    I involuntarily (cheers @root42!) spent my Saturday on tracing down an ancient Turbo C bug. ๐Ÿ˜…

    The intr() function, used to call DOS/BIOS interrupts will pass the wrong BP register value to the interrupt. BP is heavily used in stack handling, so intr() generates a BP-reload-and-INT-trampoline on the stack, but the BP reload offset it creates is off-by-four.

    Fix: Look for the sequence C6 46 F4 E2 in affected binaries, and change E2 to DE.

    More details in reply. ๐Ÿงต

    #msdos #retrocomputing

    In conversation about 7 months ago from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/113/495/402/529/709/633/original/326066e12a183020.jpg

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • Privacy
    • Source
    • Version
    • Contact

    Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.