Don't pass the first 16-bit argument via xdata.

Calling confention already uses the DPTR registers as the first two byte arguments.
So adds a lot of code to put the 16-bit value on xdata, still passes the 16-bit xdata ptr in DPTR registers, then read the xdata value.
So it doesn't save any sram bytes.
This commit is contained in:
René van Dorst
2025-10-05 16:22:23 +02:00
parent 1bec5cdf8a
commit 52fa41760c
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ void send_basic_info(void)
}
void send_vlan(__xdata uint16_t vlan)
void send_vlan(uint16_t vlan)
{
slen = strtox(outbuf, HTTP_RESPONCE_JSON);
print_string("sending VLAN\n");