mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
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:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user