Thread: 8086/8087 chip programming

  1. #16
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    So if you have problem running any of the programs just let me know and I'll try to help.

  2. #17
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    For your reference: I've completed the whole course 630 pages of text and now I'm condensing everything within 1 page for you on this website.

  3. #18
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    Okay 2 pages hehe

  4. #19
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    8086 instructions

    I've found the above link. I think it should be somewhat compatible with the assembly language for the 8086 chip set. The official Borland Turbo Assembler 4.1 and the official Borland Turbo C 2.01 works together to produce assembly language for the 8086 chip. However Borland products are a commercial product and must be purchased through Embarcadero. There are free assemblers out there like the flat assembler and so on, but I don't know how good they are. This is the end of the line for this post. I've taken you where I can legally. Now if you wish to pursue programming in the 8086 chip any longer you should purchase Borland's product. Otherwise try the free FLAT assembler for what it could get you.

  5. #20
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    Code:
    p8086
    model small
    codeseg
    startupcode
    
    mov al, 19
    mov ah, 0
    int 10h
    
    continue:
    
    cmp xdir, 1
    jne skippedreverse
    inc xpos
    cmp xpos, 320
    jl skippedreverse
    mov xdir, 0
    skippedreverse:
    
    cmp xdir, 0
    jne skippedforward
    dec xpos
    cmp xpos, word ptr 0
    jg skippedforward
    mov xdir, 1
    skippedforward:
    
    cmp ydir, 0
    jne skippedup
    dec ypos
    cmp ypos, word ptr 0
    jg skippedup
    mov ydir, 1
    skippedup:
    
    cmp ydir, 1
    jne skippeddown
    inc ypos
    cmp ypos, word ptr 200
    jl skippeddown
    mov ydir, 0
    skippeddown:
    
    mov al, cpos
    mov cx, xpos
    mov dx, ypos
    mov ah, 0ch
    int 10h
    
    dec cx
    mov al, 0
    int 10h
    
    inc cx
    inc cx
    int 10h
    
    mov cx, xpos
    mov dx, ypos
    inc dx
    int 10h
    
    dec dx
    dec dx
    int 10h
    
    mov ah, 0
    int 16h
    
    cmp ah, 57
    jne continuea
    cmp al, 32
    jne continuea
    mov xdir, 2
    mov ydir, 2
    
    continuea:
    cmp ah, 30
    jne continued
    cmp al, 97
    jne continued
    dec xpos
    
    continued:
    cmp ah, 32
    jne continues
    cmp al, 100
    jne continues
    inc xpos
    
    continues:
    cmp ah, 17
    jne continuew
    cmp al, 119
    jne continuew
    dec ypos
    
    continuew:
    cmp ah, 31
    jne continuep
    cmp al, 115
    jne continuep
    inc ypos
    
    continuep:
    cmp ah, 25
    jne quit
    cmp al, 112
    jne quit
    mov al, 19
    mov ah, 0
    int 10h
    
    quit:
    cmp ah, 16
    jne precontinue
    cmp al, 113
    jne precontinue
    jmp exitprg
    
    precontinue:
    jmp continue
    
    exitprg:
    mov al, 3
    mov ah, 0
    int 10h
    
    mov ah, 4ch
    int 21h
    
    xpos DW 2
    ypos DW 10
    cpos DB 14
    
    xdir DB 2
    ydir DB 2
    
    end
    This is starting to get into real world application using assembly language. Remember assembly language is one step less compex than machine language. JESUS!

  6. #21
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    God, Jesus Christ, is number one! Bless GOD, Jesus Christ, The Holy Spirit, and Mary. Then bless my real mom Huong Thi Thuyen Vu. Honours to my real mom Huong Thi Thuyen Vu. Honours to my real dad Nguyen Binh Thuy. Congratulations to my real two sisters Nguyen Khoa Thi and Nguyen Khoa Thuyen. Thank you GOD, Jesus Christ, The Holy Spirit and Mary for my real family I just mentioned. The reason I am happy is I am programming in Borland Turbo C 2.01 and Borland Turbo Assembler 4.1 succeeding thanks to GOD, Jesus Christ, Mary, and The Holy Spirit. Only GOD who created all people deserves respect!!!!!!!!!!!! Only GOD who created all people is good!

  7. #22
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135
    Okay! Down to business... actually our hobby. You know stamp collectors have cool stamps. So that is their hobby and their talent. My hobby is Borland Turbo Assembler 4.1 and Borland Turbo C 2.01. Look forward to many softwares from me in the future. Of course it's not going to be overnight. Some games may never end up in the market. But I tell you what. I hope you like what comes out. It is a new era. If you are continuing to carry Windows XP (32bit versions) then you are going to be in for a surprise. Even though I program for the DOS era mainly I have been able to put in a calibration routine that allows it to artificially slow down the 16bit program for 32bitXP. The problem with programming for 16bit is that XP will make it travel too fast. So it needs a simple algorithm to slow down. That solves the problem for modern systems. Windows 10 used to carry a patch that allows 16bit applications to run. However Microsoft has taken it off last time I used it. It is ashame because you can continue to calculate even algebraic equations in DOS. It has been said by those who do not know that it is an obsolete language. It is not obsolete when you can continue to develop practical softwares to get the job done. A case in point the Window XP program requires the speed because the program is bloated. However through careful attention to details you can make DOS applications fast enough to carry the job out. So look forward to my programs to be. Maybe months will pass when I have nothing to show. It is a simple thing to make games. However it just takes time.

  8. #23
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,423
    The crowd are on the pitch, they think it's all over.
    It is now.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 8086 instruction question
    By gaurav9991 in forum Tech Board
    Replies: 3
    Last Post: 11-30-2010, 12:47 PM
  2. How to store any value in Memory (inside chip) ?
    By burhanahmad in forum C Programming
    Replies: 3
    Last Post: 04-29-2005, 09:48 AM
  3. Mind-Reading chip for the disabled
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-04-2005, 12:44 PM
  4. 8086 processor
    By planet_abhi in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 09:39 AM
  5. 8086 Isa
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-22-2003, 12:10 PM

Tags for this Thread