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. assembly language in turbo C

assembly language in turbo C

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
3 Posts 3 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.
  • A Offline
    A Offline
    asif m hmood
    wrote on last edited by
    #1

    this is code of gotoxy, i have made in c++ using assembly, but it is not working and giving an error of "invalid operand". plz help!!!! void _gotoxy(int row,int cols) { asm MOV AH,0x2 asm MOV DH,row// problem is here,if we use asm MOV DL,cols//constant here, it works asm MOV BH,0x0 asm INT 0x10 } void main() { clrscr(); _gotoxy(15,15); printf("x"); getch(); }

    PJ ArendsP L 2 Replies Last reply
    0
    • A asif m hmood

      this is code of gotoxy, i have made in c++ using assembly, but it is not working and giving an error of "invalid operand". plz help!!!! void _gotoxy(int row,int cols) { asm MOV AH,0x2 asm MOV DH,row// problem is here,if we use asm MOV DL,cols//constant here, it works asm MOV BH,0x0 asm INT 0x10 } void main() { clrscr(); _gotoxy(15,15); printf("x"); getch(); }

      PJ ArendsP Offline
      PJ ArendsP Offline
      PJ Arends
      wrote on last edited by
      #2

      see below:zzz:


      CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!

      Within you lies the power for good; Use it!

      1 Reply Last reply
      0
      • A asif m hmood

        this is code of gotoxy, i have made in c++ using assembly, but it is not working and giving an error of "invalid operand". plz help!!!! void _gotoxy(int row,int cols) { asm MOV AH,0x2 asm MOV DH,row// problem is here,if we use asm MOV DL,cols//constant here, it works asm MOV BH,0x0 asm INT 0x10 } void main() { clrscr(); _gotoxy(15,15); printf("x"); getch(); }

        L Offline
        L Offline
        l a u r e n
        wrote on last edited by
        #3

        "when performing a disk format under program code one should write a certain pattern to the sector then read it back and verify what you read is correct before proceeding. if this isnt done bad things may happen" "when posting to the forums one should write a question and read back what is written (by others) before proceeding. if this isnt done bad things may happen" do i make a point?


        "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
        sonork: 100.18128   8028finder.com

        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