Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

0320 Sleeping AT

Anton Yip edited this page Mar 19, 2017 · 16 revisions

This is an AT that sleeps and wakes up every 5 blocks to update some values. Just a test that should run until it has no more value.

Code at https://github.com/antonyip/BurstAT/blob/master/at/SleepTest.txt

4th run
BURST-2CKC-J9GS-MLQM-4RH5T
3210494246524037674

-- OLD EDITS --
1st Run
8535678068889427767
BURST-Y9TR-ZD8M-NC8B-9K8XE
2.4 on first run
1.6 on subsequence activations

Seems like this function only sleeps for 1 block instead of 5.

SLP_DAT 0x25 addr sleep until $addr timestamp*
SLP_IMD 0x2a sleep until the next block
*where timestamp is actually a 32 bit block height stored in the high order 32 bits of the address value and if the block height is not greater than the current block height then it will instead just operate as SLP_IMD

Taken from http://ciyam.org/at/at.html

Compiler compiles fine. Just need to figure out what went wrong with my calculations of address.

2nd Run
5457095412130004044
BURST-SH4E-DP6Q-KUBP-6ZVGR
2.5 on first run
1.7 on subsequence activations

3rd run
BURST-E82Y-3TYD-CXCQ-9LHRY
9177757759686711326

Seems like i didn't need all those calculations.

mistake in 5.. should be at the end instead..

4th run
BURST-2CKC-J9GS-MLQM-4RH5T
3210494246524037674

Clone this wiki locally