mirror of
https://github.com/cc65/cc65.git
synced 2024-11-05 08:05:51 +00:00
b5fef66f37
Cleaning, and replace tab to spaces Converting hex lowercase value into uppercase char. Changing := and = when it was needed
47 lines
1.2 KiB
ArmAsm
47 lines
1.2 KiB
ArmAsm
;
|
|
; Ullrich von Bassewitz, 2003-08-12
|
|
;
|
|
; unsigned char __fastcall__ _sysuname (struct utsname* buf);
|
|
;
|
|
|
|
.export __sysuname, utsdata
|
|
|
|
.import utscopy
|
|
|
|
__sysuname = utscopy
|
|
|
|
;--------------------------------------------------------------------------
|
|
; Data. We define a fixed utsname struct here and just copy it.
|
|
|
|
.rodata
|
|
|
|
utsdata:
|
|
; sysname
|
|
.asciiz "cc65"
|
|
|
|
; nodename
|
|
.asciiz ""
|
|
|
|
; release
|
|
.byte ((.VERSION >> 8) & $0F) + '0'
|
|
.byte '.'
|
|
.if ((.VERSION >> 4) & $0F) > 9
|
|
.byte ((.VERSION >> 4) & $0F) / 10 + '0'
|
|
.byte ((.VERSION >> 4) & $0F) .MOD 10 + '0'
|
|
.else
|
|
.byte ((.VERSION >> 4) & $0F) + '0'
|
|
.endif
|
|
.byte $00
|
|
|
|
; version
|
|
.if (.VERSION & $0F) > 9
|
|
.byte (.VERSION & $0F) / 10 + '0'
|
|
.byte (.VERSION & $0F) .MOD 10 + '0'
|
|
.else
|
|
.byte (.VERSION & $0F) + '0'
|
|
.endif
|
|
.byte $00
|
|
|
|
; machine
|
|
.asciiz "Oric Telestrat"
|