pub fn display_real(src: &str) {
    let ptr = src.as_ptr();
    let len = src.len() as u16;

    unsafe {
        asm! {
            "push bp",
            "push bx",
            "mov bp, ax",
            "mov ax, 01301h",
            "mov bx, 000ch",
            "mov dx, 0",
            "int 10h",
            "pop bx",
            "pop bp",
            in("ax") ptr,
            in("cx") len,
            out("dx") _,
        }
    }
}
/// Display a string on screen, see <https://stanislavs.org/helppc/int_10-13.html>.
/// You should only use this function in real mode.
Display a string on screen, see .
You should only use this function in real mode.
Display a string on screen see . You should only use this function in real mode .
pub fn display_real(src: &str) {
    let ptr = src.as_ptr();
    let len = src.len() as u16;
    unsafe {
        asm! {
            "push bp",
            "push bx",
            "mov bp, ax",
            "mov ax, 01301h",
            "mov bx, 000ch",
            "mov dx, 0",
            "int 10h",
            "pop bx",
            "pop bp",
            in("ax") ptr,
            in("cx") len,
            out("dx") _,
        }
    }
}
pub fn display_real ( src : & str ) { let ptr = src . as_ptr ( ) ; let len = src . len ( ) as u16 ; unsafe { asm ! { " " " " " " " " " " " " " " " " " " in ( " " ) ptr in ( " " ) len out ( " " ) } } }
Display a string on screen, see <https://stanislavs.org/helppc/int_10-13.html>.
Display a string on screen see <https : // stanislavs . org / helppc / int_10 - 13 . html > .
src
&str