Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell WHYP -- An Extensible Language Chapter 4
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell WHYP--An Extensible Language A Closer Look at WHYP Defining New WHYP Words Variables Constants EEPROM
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell A Closer Look at WHYP
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell WHYP--An Extensible Language A Closer Look at WHYP Defining New WHYP Words Variables Constants EEPROM
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Colon Definitions : ; : squared ( n -- n 2 ) DUP * ; JSR DUP JSR * 3D RTS
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell
WHYP12.CFG
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell SEE and SHOW see squared squared DUP * ; ok show squared squared D ok see cubed cubed DUP squared * ; ok show cubed cubed D ok
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Single Stepping ok 5 step squared squared DUP * ; S:[1] 5 R:[0] DUP S:[2] 5 5 R:[0] * S:[1] 19 R:[0] Exit single step ok. 25 ok
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Single Stepping ok 5 step cubed cubed DUP squared * ; S:[1] 5 R:[0] DUP S:[2] 5 5 R:[0] squared S:[2] 5 19 R:[0] * S:[1] 7D R:[0] Exit single step ok. 125 ok
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Loading WHYP words from a file square.whp
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Loading WHYP words from a file
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell CR and." : bar( -- )\ print a bar CR." ******" ; : post( -- )\ print a post CR." *" CR." *" ;
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell CR and." : C( -- )\ print a C bar post bar cr ; : E( -- )\ print an E bar post bar cr;
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell WHYP--An Extensible Language A Closer Look at WHYP Defining New WHYP Words Variables Constants EEPROM
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Variables VARIABLEmy.name my.name. 800 ok EJSR (LIT)0800 3DRTS Stores the following code at tdp. my.name executes this code.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Variables Variables are stored in memory at address vdp. The value of vdp can be changed by pressing F8. VHERE puts the current value of vdp on the data stack.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Fetch and Store
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Examples and ! C:\WHYP\WHYP12>whyp12 Using WHYP12.HED Communicating with COM1 68HC12 WHYP12 - Version 4.6 Press or type BYE to exit ok VARIABLEmy.name ok hex ok my.name. 800 ok 7my.name ! ok dump A B C D E F R. (.. ok 7 ok 12 my.name c! ok 34 my.name 1+ c! ok dump A B C D E F R. (.. ok my.name 12 ok my.name ok
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell 68HC12 code for C!, and
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Plus-store 1 my.name +!
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell 68HC12 code for 2!, and
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell System Variables: SP0, RP0
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Arrays VARIABLE my.array 8 VALLOT my.array 3 2* will print the value of my.array[3]
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Arrays VARIABLE my.array 8 VALLOT my.array 3 2* will print the value of my.array[3] : ( ix addr -- n ) SWAP 2* ; 3 my.array Chap 13: my.array !
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell WHYP--An Extensible Language A Closer Look at WHYP Defining New WHYP Words Variables Constants EEPROM
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Constants 25 CONSTANT quarter EJSR (LIT)0019 3DRTS Stores the following code at tdp. quarter executes this code. quarter. will print the value 25 on the screen.
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Examples of using CONSTANTs
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Tables CREATE table
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell HEX CREATE table 5, 8, 23,
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Example of creating a table
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell HEX CREATE table 5 C, 8 C, 23 C,
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell EEPROM MC68HC812A4 –4 Kbytes of EEPROM –$ FFF MC68HC912B32 –768 bytes of EEPROM –$0D00 - $0FFF
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell EEPROM Initial Position Register
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell MC68HC812A4 EEPROM Block Protect Register
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell MC68HC912B32 EEPROM Block Protect Register In WHYP12: CLR EEPROT
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell The EEPROM Control Register
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Erasing an EEPROM Byte
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Delay 10 Milliseconds
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Erase Entire EEPROM
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell Program an EEPROM Byte
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell
Examples of using EEPROM memory access words
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell
square.hed
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell whyp12.cfg
Design of Embedded Systems Using 68HC12(11) Microcontrollers - R. E. Haskell