Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Memory addressing in DJGPP... ;-)

cip_ryancip_ryan Member Posts: 10
It's seams really hard to get the segment or offset of an variable in DJGPP (it's that beacause it's working in protected mode?!?). I need it beacause I'm trying to read the Hard Disk via Int13(Ext) and I need the seg:ofs addressing.
And, olso, I want to convert a seg:ofs address to a pointer in DJGPP
CAN YOU, HOW READ THIS POST, HELP ME? You will have my eternal gatitude.

Trully your's,
CIP'ryan




Comments

  • SteveCSteveC Member Posts: 63
    From the manual page
    -----
    #include

    unsigned _bios_disk(unsigned cmd, struct diskinfo_t *di)

    Description
    -----------

    This function interfaces with the BIOS disk sevice (interrupt 0x13).
    The parameter CMD select the corresponding disk service and the
    structure DI holds the disk parameters.
    -----

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    _ / http://forcoder.org / free video tutorials and ebooks about | Objective-C MATLAB C PHP C++ Go C# Perl Swift JavaScript R Visual Basic .NET Delphi Java Assembly Ruby Scratch PL/SQL Visual Basic Python Lisp Erlang Fortran Scala SAS Kotlin Lua Prolog Clojure Hack Awk Ada Julia Scheme Transact-SQL ABAP Rust Bash Alice Crystal LabVIEW ML COBOL D Logo FoxPro F# VBScript Dart Apex | __

Sign In or Register to comment.