User:RafaelOrtiz: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 53: Line 53:


ok 12345 constant mynum \defining hex constants
ok 12345 constant mynum \defining hex constants

pc@ ( port# -- byte ) \ Read from an 8-bit I/O port --- P ports
pw@ ( port# -- word ) \ Read from a 16-bit I/O port
pl@ ( port# -- long ) \ Read from a 32-bit I/O port
pc! ( byte port# -- ) \ Write to an 8-bit I/O port
pw! ( word port# -- ) \ Write to a 16-bit I/O port
pl! ( long port# -- ) \ Write to a 32-bit I/O port

Revision as of 01:34, 5 July 2007

es Castellano es la lengua materna de este usuario

Contributer.gif


Working on

Things to look at

TO DO

Notes

Forth Things

l@  ( adr -- l )    \ Fetch a 32-bit value
l!  ( l adr -- )    \ Store a 32-bit value
w@  ( adr -- w )    \ Fetch a 16-bit value
<w@ ( adr -- w )    \ Fetch a 16-bit value, sign extending
w!  ( w adr -- )    \ Store a 16-bit value
c@  ( adr -- b )    \ Fetch a 8-bit value
c!  ( b adr -- )    \ Store a 8-bit value
 ok 12345 constant mynum \defining hex constants
pc@ ( port# -- byte )  \ Read from an 8-bit I/O port --- P ports
pw@ ( port# -- word )  \ Read from a 16-bit I/O port
pl@ ( port# -- long )  \ Read from a 32-bit I/O port
pc! ( byte port# -- )  \ Write to an 8-bit I/O port
pw! ( word port# -- )  \ Write to a 16-bit I/O port
pl! ( long port# -- )  \ Write to a 32-bit I/O port