Lecture 1: Introduction
Programming Fundamentals Gorka Guardiola
LS, GSYC
October 24, 2011
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 1 / 32
Lecture 1: Introduction Programming Fundamentals Gorka Guardiola - - PowerPoint PPT Presentation
Lecture 1: Introduction Programming Fundamentals Gorka Guardiola LS, GSYC October 24, 2011 Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 1 / 32 (cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 1 / 32
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 2 / 32
◮ Take information (input) ◮ Process it ◮ Store it/retrieve it ◮ Produce information (output)
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 3 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 4 / 32
◮ Input devices ◮ Output devices ◮ Central Processing Unit (CPU) ◮ Main memory ◮ Secondary storage (disks)
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 5 / 32
◮ Numbers ◮ Text ◮ Programs ◮ Images ◮ Sounds ◮ Images + sounds = video ◮ ... Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 6 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 7 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 8 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 9 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 10 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 11 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 12 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 13 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 14 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 15 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 16 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 17 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 18 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 19 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 20 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 21 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 22 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 23 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 24 / 32
◮ Arithmetic (sum, multiplication, etc.) ◮ Logical (comparisons, etc.) ◮ Moving data around
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 25 / 32
MACHINE CODE 2) print the pi number 3) write a carriage return 4) exit _TEXTsegmentbytepublic’CODE’ public_dt_ym1 pushax pushdx xorax,ax inal,dx
xorax,ax movdx,TIMER0_CNT _dt_ym0procfar public_dt_ym0 0001011110001000100101110010101010101010101010101010101010 1001100110110101010110101000001111001010101010000101110010 1001010101010101010101000010000000011111011101011111110000 1010101010010101001010101001000000111101100101111111111111 NATURAL LANGUAGE (English) /* say hello to a great number */ program holapi; consts: Pi = 3.1415926; procedure main() { } write("Hola "); write(Pi); write("!"); writeeol(); PROGRAMMING LANGUAGE (picky) ASSEMBLY CODE 1) start by printing some form of greeting
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 26 / 32
libraries CODE COMPILER OBJECT FILE OBJECT FILE LINKER EXECUTABLE FILE (BINARY) OBJECT FILE OBJECT FILE program SOURCE
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 27 / 32
1 Specify the problem 2 Set a plan 3 Implement the plan. 4 Test the implementation 5 Debug the implementation (80% of the time, most difficult).
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 28 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 29 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 30 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 31 / 32
Gorka Guardiola (LS, GSYC) Lecture 1: Introduction October 24, 2011 32 / 32
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 1 / 20
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 2 / 20
◮ Set of homogeneous, elements with well defined operations. ◮ Cannot be mixed (strong typing). Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 3 / 20
◮ Integer numbers: int ◮ Real numbers: float ◮ Chars: char ◮ Truth values: bool Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 4 / 20
◮ Integers: 3 -5 ◮ Reals: 3.14 1.34E2 -1.00000E-04 ◮ Chars: ’a’ ’B’ ◮ Truth values: True False
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 5 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 6 / 20
◮ Sign: - + ◮ Addition: + ◮ Subtraction: - ◮ Multiplication: * ◮ Division: / ◮ Exponentiation: **
◮ Modulo (remainder): % Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 7 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 8 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 9 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 10 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 11 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 12 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 13 / 20
1 lower 2 or and 3 == ! = < > <= >= 4 (operation) + - 5 * / % 6 ** 7 (sign) + - 8 len not 9 higher Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 14 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 15 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 16 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 17 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 18 / 20
◮ int(3.14) ◮ float(3) ◮ char(3) ◮ int(’a’)
◮ int → float ◮ float → int ◮ Ordinal → int ◮ int → Ordinal Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 19 / 20
Gorka Guardiola (LS, GSYC) Lecture 2: Sets and elements October 7, 2011 20 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 1 / 20
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 2 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 3 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 4 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 5 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 6 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 7 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 8 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 9 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 10 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 11 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 12 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 13 / 20
1 Wake up 2 Go to school 3 Go back home 4 Do the homework 5 Go to bed Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 14 / 20
1 Wake up 2 Go to school 3 Go back home 4 Do the homework 1
2
5 Go to bed Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 15 / 20
1 Wake up 2 Go to school 3 Go back home 4 Do the homework 1 1
2
2
5 Go to bed Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 16 / 20
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 17 / 20
Lecture 3: Direct Solution Problems October 14, 2011 18 / 20
1 Think the solution for a simple, particular case 2 Try it 3 Generalize it
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 19 / 20
1 acos(r: float): float 2 asin(r: float): float 3 atan(r: float): float 4 cos(r: float): float 5 exp(r: float): float 6 log(r: float): float 7 log10(r: float): float 8 pow(r: float): float 9 sin(r: float): float 10 sqrt(r: float): float 11 tan(r: float): float Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 3: Direct Solution Problems October 14, 2011 20 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 1 / 9
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 2 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 3 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 4 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 5 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 6 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 7 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 8 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 4: Selection Problems October 24, 2011 9 / 9
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 1 / 21
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 2 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 3 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 4 / 21
◮ Short: more readable. ◮ Descriptive and clear: seeing the name should make the reader
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 5 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 6 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 7 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 8 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 9 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 10 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 11 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 12 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 13 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 14 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 15 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 16 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 17 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 18 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 19 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 20 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 5: Variables and Procedures November 8, 2011 21 / 21
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 1 / 12
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 2 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 3 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 4 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 5 / 12
◮ pred(elem): element before this one (predecessor). ◮ succ(elem): next element (successor). ◮ int(elemento): int associated to an element ◮ element(int): element associated to an int.
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 6 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 7 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 8 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 9 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 10 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 11 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 6: Scalar Types and Tuples November 7, 2011 12 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 1 / 12
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 2 / 12
◮ Is the execution going to enter the loop? ◮ What will be done on each execution?
◮ When do we exit the loop?
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 3 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 4 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 5 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 6 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 7 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 8 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 9 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 10 / 12
Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 11 / 12
1 Correctness and legibility 2 Speed 3 Waste of memory Gorka Guardiola (LSUB, GSYC, URJC ) Lecture 7: Loops November 28, 2011 12 / 12
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 1 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 2 / 20
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 3 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 4 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 5 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 6 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 7 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 8 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 9 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 10 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 11 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 12 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 13 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 14 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 15 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 16 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 17 / 20
Paso 4 Paso 3 Paso 2 Paso 1 2 3 5 2 6 2 2 5 3 6 3 2 5 2 6 2 3 5 2 6 2 2 5 3 6 2 2 3 5 6 2 2 3 5 6 2 2 3 5 6
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 18 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 19 / 20
Gorka Guardiola (LS, GSYC, URJC ) Lecture 8: Collections January 10, 2012 20 / 20
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
H
a
m i g
EOL a
d i
. EOL EOF
(cc) 2010 Grupo de Sistemas y Comunicaciones. Some rights reserved. This work is provided under Creative Commons Attribution License - NonCommercial - NoDerivs (by-nc-nd). To obtain the complete license go to http://creativecommons.org/licenses/by-sa/2.1/es. or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
NB: To simplify the diagrams, all the data types are drawn as one byte.
???
???
0x40 0x41
???
0x42 0x43 0x44 0x59 0x60 0x61 0x80 0x81 0x82
??? EN MEMORIA:
0x00
¡Basura!
NIL
0x40 0x41 NIL 0x42 0x43 0x44 0x59 0x60 0x61 0x80 0x81 0x82
EN MEMORIA:
0x00
???
0x60
0x40 0x41 0x80 0x42 0x43 0x44 0x59 0x60 0x61 0x80 0x81 0x82
??? EN MEMORIA:
0x00
??? ???
reservada reservada
¡Basura!
8
0x60
0x40 0x41 0x80 0x42 0x43 0x44 0x59 0x60 0x61 0x80 0x81 0x82
'X' EN MEMORIA:
0x00
8 'X'
reservada reservada
NIL
0x40 0x41 NIL 0x42 0x43 0x44 0x59 0x60 0x61 0x80 0x81 0x82
EN MEMORIA:
0x00