Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hi Help me write this program (tuan1111)

Hi Help me write this program (tuan1111)

Scheduled Pinned Locked Moved C / C++ / MFC
databasecomhelpannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tuan1111
    wrote on last edited by
    #1

    [www.codeproject.com Hi Help me write this program I have the code: _Text SEGMENT PUBLIC USE16 assume CS: _Text, DS: _Text org 0 ; This is the entry point for the program Entry: db 0EAh; jmp far seg: OFS; Currently we are at 0:7 C00 DW Offset AfterData, 7C0h; This makes us be at 7C0: 0 ; Our Message to the World ; ======================== HelloWorld db 'Hello World! ", 0; AfterData: push CS pop DS; update DS 7C0 to be instead of 0 ; Display Hello World ; =================== mov si, HelloWorld Offset do: mov AL, DS: [SI] SI inc or AL, AL jz done; mov BX, 0 mov AH, 0Eh int 10h jmp do; done:; ; OK We have displayed the message ; ================================ jmp $; ; Hang the system ; =============== ; Make the file 512 bytes long ; ============================ org 510 ; Add the boot signature ; ====================== DW 0AA55h _Text ENDS END](http://www.codeproject.com
    I have the code:

    _Text SEGMENT PUBLIC USE16
    assume CS: _Text, DS: _Text
    org 0

    ; This is the entry point for the program

    Entry:
    db 0EAh; jmp far seg: OFS; Currently we are at
    0:7 C00
    DW Offset AfterData, 7C0h; This makes us be at 7C0: 0

    ; Our Message to the World
    ; ========================

    HelloWorld db 'Hello World! )[

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups