Merge pull request #637 from mir-protocol/move_storage

Move storage asm
This commit is contained in:
Daniel Lubarov 2022-07-24 14:03:01 -07:00 committed by GitHub
commit 2aad4658d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 18 deletions

View File

@ -43,8 +43,8 @@ pub(crate) fn combined_kernel() -> Kernel {
include_str!("asm/secp256k1/lift_x.asm"),
include_str!("asm/secp256k1/inverse_scalar.asm"),
include_str!("asm/ecrecover.asm"),
include_str!("asm/storage_read.asm"),
include_str!("asm/storage_write.asm"),
include_str!("asm/storage/read.asm"),
include_str!("asm/storage/write.asm"),
];
let parsed_files = files.iter().map(|f| parse(f)).collect_vec();

View File

@ -0,0 +1,2 @@
global storage_read:
// TODO

View File

@ -0,0 +1,2 @@
global storage_write:
// TODO

View File

@ -1,10 +0,0 @@
// TODO: Dummy code for now.
global storage_read:
JUMPDEST
PUSH 1234
POP
// An infinite loop:
mylabel:
JUMPDEST
PUSH mylabel
JUMP

View File

@ -1,6 +0,0 @@
// TODO: Dummy code for now.
global storage_write:
JUMPDEST
PUSH 123 // Whatever.
POP
BYTES 0x1, 0x02, 3