When writing code to be compiled with SDCC targetting Z80, assembler code fragments can be inserted in the C functions by enclosing them between the __asm and __endasm; tags:
void DoNotDisturb()
{
__asm
di
| """Concurrent read-process-write example""" | |
| import concurrent.futures | |
| from itertools import islice | |
| from time import sleep | |
| import rasterio | |
| CHUNK = 100 |
| #!/usr/bin/env bash | |
| # obtains all data tables from database | |
| TS=`sqlite3 $1 "SELECT tbl_name FROM sqlite_master WHERE type='table' and tbl_name not like 'sqlite_%';"` | |
| # exports each table to csv | |
| for T in $TS; do | |
| sqlite3 $1 <<! | |
| .headers on |