Assembly Help PLease!

This is a discussion on Assembly Help PLease! within the C Programming forums, part of the General Programming Boards category; I had to answer some questions for homework but i can't seem to find the answer to all of them ...

  1. #1
    Tleggo
    Guest

    Assembly Help PLease!

    I had to answer some questions for homework but i can't seem to find the answer to all of them and no one knows the answer to these questions i wanted to know if maybe anyone could help me out??
    OH yeah BTW it's Assembly language.....being that there arent any AL boards out there i figured that maybe some experience C programmers could help me out thanks allot i really appreciate it!


    Assuming that bits 0-4 holds a store a department number and bits 5-7 holds a store number with in the following bit mapped field. What are the values shown here.
    11000101 store= , department =
    00101001 store= , department =
    01010101 store= , department =

    Questions #2
    Assume that you are decoding the file allocation table of 1.44 MB diskette AX contains the previous cluster number and DX contains the current offset into the FAT. Write a series of assembly language statements that will calculate new cluster number and place it in AX?

    Question # 3
    a)Assuming that a buffer is 512 bytes memory buffer, what is wrong in the following subroutine that reads a single sector from drive A ?
    read_sector proc
    mov al, 0
    mov cl, 1
    mov dx,12
    mov bx,offset buffer
    int 25h
    ret
    read_sector endp
    b)What is the offset of the 20h record in the file that contains 50 bytes fixed length records?

    Question #4
    a)If a one side disk has 40 tracks per side and each track contains eight 512 bytes sectors what is the total disk capacity?
    b)What date is indicated by the following date stamp?
    0000101011011010

    Question #5
    Suppose that FH contains the file handle of file open for write and that Date is the address of a byte string of the form MM/DD/YY containing today’s date. Write assembly codes to write date into the current file at the file's current position?

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    There are ASM boards, like:

    http://board.win32asmcommunity.net/

    >and no one knows the answer to these questions

    I'm sure there are people who know the answers, but they want you to figure out, since you should learn it. Usually people try to figure out the answers by themselves first and post them here to check if they were right. If they were not, people will explain to them what they did wrong and give a hint to the correct answer. That's the best way of learning.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >being that there arent any AL boards out there i

    It took me all of about 5 seconds on google to find an asm forum. I suggest you look harder!
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Assembly
    By mrafcho001 in forum Tech Board
    Replies: 5
    Last Post: 03-12-2006, 04:00 PM
  2. C to assembly interface
    By Roaring_Tiger in forum C Programming
    Replies: 4
    Last Post: 02-04-2005, 02:51 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  5. C,C++,Perl,Java
    By brusli in forum C Programming
    Replies: 9
    Last Post: 12-31-2001, 02:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21