This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; 6502 implementation of the FNV-1a hash algorithm. It calculates a 32 bit hash and also casts the hash into a 16 bit value stored in CPU regs upon returning | |
| .export fnv | |
| ; CONFIGURATION: | |
| ; feel free to modify bellow symbols on a way that suit your needs | |
| ; ---------------------------------------------------------------------- | |
| ; two 32 bit variables, preferably in Zero Page in order to improve execution speed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Simple library, that implements a queue | |
| ; The code bellow expects the user to define a `queue_cfg` block alongside some values. See queue_demo.p8 for more info | |
| queue{ | |
| uword @zp fi | |
| uword @zp fo | |
| ubyte state=0 | |
| const ubyte initialised=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %import textio | |
| %import lk_mem | |
| %zeropage basicsafe | |
| %option no_sysinit | |
| main{ | |
| sub start(){ | |
| ;sys.exit(0) | |
| uword andrzej=human.new("andrzej","marecki") | |
| uword poet=human.new("czes£aw","mi£osz") |