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
| package commoble.hyperbox; | |
| import java.lang.reflect.Field; | |
| import java.util.Map; | |
| import java.util.concurrent.Executor; | |
| import java.util.function.BiFunction; | |
| import java.util.function.Function; | |
| import com.google.common.collect.ImmutableList; | |
| import com.mojang.serialization.Lifecycle; |
| --- p3.cc 2019-08-02 01:00:02.824687700 -0600 | |
| +++ SimpleDemo3DPGE.cc 2019-08-02 12:21:52.749790300 -0600 | |
| @@ -1,95 +1,57 @@ | |
| /* | |
| -OneLoneCoder.com - 3D Graphics Part #3 - Cameras & Clipping | |
| -"Tredimensjonal Grafikk" - @Javidx9 | |
| - | |
| -License | |
| -~~~~~~~ | |
| -One Lone Coder Console Game Engine Copyright (C) 2018 Javidx9 |
| /** | |
| * USB HID Keyboard scan codes as per USB spec 1.11 | |
| * plus some additional codes | |
| * | |
| * Created by MightyPork, 2016 | |
| * Public domain | |
| * | |
| * Adapted from: | |
| * https://source.android.com/devices/input/keyboard-devices.html | |
| */ |
| @echo off | |
| setlocal | |
| call :setESC | |
| cls | |
| echo %ESC%[101;93m STYLES %ESC%[0m | |
| echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m | |
| echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m | |
| echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m |
| vboxmanage clonehd image.vdi image.img --format RAW | |
| qemu-img convert -f vdi -O raw image.vdi image.img | |
| vbox-img convert --srcfilename image.vdi --stdout --srcformat VDI --dstformat RAW image.img |