Menu

Machine Identification Byte at memory location: F000:FFFE.

2017-07-05
2017-07-05
  • Ronald Herrera

    Ronald Herrera - 2017-07-05

    Hi!

    Can it be possible to set into the PCjr section an identification byte in a memory located F000:FFFE or after the statement "DEF SEG = &HFFFF" completed, a display of hexadecimal 'FD' (byte #253) with peek(13) (&HE)? Some programs use a PEEK into machine memory, specificly at this address to identify the type of machine as a PCjr or IBM PC or wiselike. See: http://stanislavs.org/helppc/id_bytes.html I know that it could be an issue because PC-BASIC is an emulator and it, actually, have not physical location memories. But since is a statical location maybe a subtitution can be arranged? Is this possible?

    Regards,
    Ronald.

    PD:

    DEF SEG = &HFFFF (this is to include all memory location to be available)
    Ok
    PRINT HEX$(PEEK(&HE))
    FD
    Ok
    _

     
  • Ronald Herrera

    Ronald Herrera - 2017-07-06

    Sorry, is not PEEK(13) is 14... hexadecimal: &HE.
    Ron.

     
  • Rob Hagemans

    Rob Hagemans - 2017-07-06

    Hi Ron, I think this should be possible, I'll add it to the list of things to improve :)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.