Entry | |
---|---|
R1 | 67 (&43) |
R2 | 9 |
R3 | Country number |
R4 | Pointer to buffer |
R5 | Length of buffer |
Exit | |
---|---|
R1 | 0 to claim service, else preserved |
R2 | Preserved |
R3 | Preserved |
R4 | Preserved |
R5 | Number of characters put into buffer, or preserved if not recognised |
This service converts a country number to the unterminated 2 letter abbreviation specified in ISO3166-1. Conventionally, this is the country’s top level domain name.
The UK uses ‘uk’ in preference to its allocated ‘gb’ abbreviation.
If a module provides additional countries it should check this service – if the number matches one provided by the module it should claim this service.