Friday, October 10, 2008

Question #6

#include


#include


/* Programmed by Harvey Losin *//* http://www.bikoy.com/harvey *//* webmaster@bikoy.com */


main()


{


int a;char d,p;


const DeLuxe=40,Premeire=60;


clrscr();printf("\n\n\tDeLuxe=P=40");


printf("\n\n\tPremeire=P=60");


printf("\nWhat place in the moviehouse would you prefer to watch? : ");


d=getche();d=toupper(d);


if(d=='D'){printf("\nHow many of you are going to watch?");


scanf("%d", &a);printf("\n\nThe amount your going to pay is =P= %d",DeLuxe*a);


}


else if(d=='P'){printf("\nHow many of you are going to watch?");


scanf("%d", &a);


printf("\n\nThe amount your going to pay is =P= %d",Premeire*a);


}


else


{


printf("\n\nThe letter you press is wrong");


}


getch();


}


Tuesday, October 7, 2008

Intel 8088

The Intel 8088 is an Intel x86 microprocessor based on the 8086, with 16-bit registers and an 8-bit external data bus. It can address up to 1 MB of memory. The 8088 was introduced on July 1, 1979, and was used in the original IBM PC.
The 8088 was targeted at economical systems by allowing the use of 8-bit designs. Large bus width circuit boards were still fairly expensive when it was released. The prefetch queue of the 8088 was shortened to four bytes (as opposed to the 8086's six bytes) and the prefetch algorithm slightly modified to adapt to the narrower bus.
Variants of the 8088 with more than 5 MHz maximum clock frequency, include the 8088-2, which was fabricated in Intels new enhanced nMOS process called HMOS and specified for a maximum frequency of 8 MHz. Later followed the 80C88, a fully static CMOS design, which could operate from DC to 8 MHz. There were also several other, more or less similar, variants from other manufacturers. For instance, the V20 was a slightly faster pin compatible variant of the 8088.
The descendants of the 8088 include the 80188, 80186, 80286, 80386, and 80486 microprocessors which are still in use today. See below for a more complete list.
The most influential microcomputer to use the 8088 was, by far, the IBM PC. The original PC processor ran at a clock frequency of 4.77 MHz (4/3 the NTSC colorburst frequency of 3.579545 MHz). Depending on the model, the Intel 8088 ranged from 0.33 to 0.75 million instructions per second

Monday, October 6, 2008

Question #5

Question #5:
Research in the net the most recent assembler. Describe its history, nature and applications. Evaluate this assembler from its predecessor.

ANSWER:
1.) VIC-20
The VIC-20 debuted in June of 1980 at the Computer Electronics Show but its development started almost by accident two years earlier. Commodore engineered and manufactured the "Video Interface Chip 6506" or VIC1 for the video game market which was beginning to collapse. After not being able to sell the chip, Commodore developed the VIC-20 as an inexpensive home computer. Between early 1981, when the VIC actually hit store shelves, and the first few months of 1985, when the last VIC production line was shut down, it had sold more than 2.5 million units. It had an very impressive peak daily production of 9000 units and was the worlds first computer to sell more than 1 million units.There are reports that during its development it was called the MicroPET. and there is a lot of debate over the origins "20" portion of the VIC-20 name. The Commodore Executive responsible for the VIC's development, and the author of The Home Computers Wars, Michael Tomczyk, stated repeatedly that he choose the name simply because he thought it "sounded good". The assembler supported the usual symbolic addressing and the definition of character strings or hex strings. It also allowed address expressions which could be combined with addition, subtraction, multiplication, division, logical AND, logical OR, and exponentiation operators.
reference:
*http://www.commodore.ca/products/vic20/commodore_vic-20.htm

Thursday, October 2, 2008

Question #4

Question#4: Justify what situations or applications programmers will rather use Assembly Languages than Higher Level Progamming Languages and vice versa.

Answer:
Many programmers choose assembly language because of its, common application today it has a direct hardware manipulation, access to specialize processor instruction and for address critical performance issues and quiet small compared in the high-level languages because its indicates that one generally doesn’t choose assembly language. However, there are situations where it may not be convenient, efficient, or possible to write programs in high-level languages. Assembly language has a number of advantages over machine code aside from the obvious increase in readability. One is that the use of symbolic names for data and instruction labels frees the programmer from computing and recomputing the memory locations whenever a change is made in a program. Assembly language has typical type of uses: 1. device drivers 2.low-level embedded system 3. red-time system and ect.

Question #3

Question#3: Research in the net what is the best assembler and why.

Answer:
FASM is the best and good assembler because it is known as the fast speed. FASM is a multi-pass assembler. It makes extensive code size optimization, and allows more forward referencing. A usual FASM construct is defining data or procedures only if they are used somewhere in the code, something that in most languages is done per-object by the linker. FASM or Flat Assembler is a free and open source Intel-style assembler supporting the IA-32 and x86-64 architectures, size optimizations, OS portability, and macro capabilities .It is a low-level assemblerand uses few command-line options.FASM contains bindings to the Windows GUI and OpenGL.

Monday, September 29, 2008

Question #2

Question #2:
Research in the net usual applications done in assembly language. Describe these applications briefly and cite the efficiency and effectiveness of these applications.


Answer:
Assembly language is a low-level language for programming computers. It implements a symbolic representation of the numeric machine codes and other constants that is needed to program a particular CPU architecture. And it is developed in 1950s. And it is second generation programming language. and it is not only a single language but rather it is a group of language.


People must choose assembly language because of its quiet small compared to the amount done in high-level languages indicates that one generally doesn’t choose assembly language. Hard-coded assembly language is typically used in a system's boot ROM (BIOS on IBM-compatible Pc systems. This low-level code is used, among other things, to initialize and test the system hardware prior to booting the OS, and is stored in ROM. Once a certain level of hardware initialization has taken place, execution transfers to other code, typically written in higher level languages; but the code running immediately after power is applied is usually written in assembly language. The same is true of most boot loaders.

Many compilers render high-level languages into assembly first before fully compiling, allowing the assembly code to be viewed for debugging and optimization purposes. Relatively low-level languages, such as C, often provide special syntax to embed assembly language directly in the source code. Programs using such facilities, such as the Linux kernel, can then construct abstractions utilizing different assembly language on each hardware platform. The system's portable code can then utilize these processor-specific components through a uniform interface.

Sunday, September 21, 2008

Question #1

Question #1:
What topic(s) in MCS 213 do you find easy and/or difficult and why?


Answer:
In MCS 213 i find difficult was the laboratory exercises because i dont have any background in c. I find easy in this subject was the computer organization and computer architecture.



Student Name:
Chramen G. Poblete