fix long 0 argument to asmsub with 32-bits combined virtual register to pass it in

This commit is contained in:
Irmen de Jong
2025-12-21 21:09:33 +01:00
parent 071d5dc0c5
commit e57d9f59a2
4 changed files with 143 additions and 41 deletions
@@ -415,6 +415,10 @@ enum class RegisterOrPair {
}
}
/**
* Returns the starting virtual register name for the current 32-bit combined virtual register
* @return The starting register name as a string, WITHOUT THE cx16 block scope prefix!
*/
fun startregname() = when(this) {
R0R1_32 -> "r0"
R2R3_32 -> "r2"