Information Systems for Business and Beyond (2019)

10111001 00000000 11010010 10100001 00000100 00000000 10001001 00000000 00001110 10001011 00000000 00011110 00000000 00011110 00000000 00000010 10111001 00000000 11100001 00000011 00010000 11000011 10001001 10100011 00001110 00000100 00000010 00000000

Assembly language is the second-generation language and uses English-like phrases rather than machine-code instructions, making it easier to program. An assembly language program must be run through an assembler, which converts it into machine code. Here is a sample program that adds 1234 and 4321 using assembly language.

MOV CX,1234 MOV DS:[0], CX MOV CX,4321 MOV AX, DS:[0] MOV BX, DS:[2] ADD AX, BX MOV DS:[4], AX

Third-generation languages are not specific to the type of hardware on which they run and are similar to spoken languages. Most third-generation languages must be compiled. The developer writes the program in a form known generically as source code , then the compiler converts the source code into machine code, producing an executable file. Well known third-generation languages include BASIC, C, Python, and Java. Here is an example using BASIC: A=1234 B=4321 C=A+B END Information Systems for Business and Beyond (2019) pg. 212

Made with FlippingBook flipbook maker