This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
OS_Project/Part4/10_scheduler/ports.s

502 lines
7.3 KiB
ArmAsm
Raw Normal View History

2023-11-29 19:19:51 +00:00
.file "ports.c"
.text
.Ltext0:
.globl port_byte_in
.type port_byte_in, @function
port_byte_in:
.LFB0:
.file 1 "./cpu/ports.c"
.loc 1 6 0
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
subl $20, %esp
movl 8(%ebp), %eax
movw %ax, -20(%ebp)
.loc 1 16 0
movzwl -20(%ebp), %eax
movl %eax, %edx
#APP
# 16 "./cpu/ports.c" 1
in %dx, %al
# 0 "" 2
#NO_APP
movb %al, -1(%ebp)
.loc 1 17 0
movzbl -1(%ebp), %eax
.loc 1 18 0
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
.LFE0:
.size port_byte_in, .-port_byte_in
.globl port_byte_out
.type port_byte_out, @function
port_byte_out:
.LFB1:
.loc 1 20 0
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
subl $8, %esp
movl 8(%ebp), %edx
movl 12(%ebp), %eax
movw %dx, -4(%ebp)
movb %al, -8(%ebp)
.loc 1 26 0
movzbl -8(%ebp), %eax
movzwl -4(%ebp), %edx
#APP
# 26 "./cpu/ports.c" 1
out %al, %dx
# 0 "" 2
.loc 1 27 0
#NO_APP
nop
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
.LFE1:
.size port_byte_out, .-port_byte_out
.globl port_word_in
.type port_word_in, @function
port_word_in:
.LFB2:
.loc 1 29 0
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
subl $20, %esp
movl 8(%ebp), %eax
movw %ax, -20(%ebp)
.loc 1 31 0
movzwl -20(%ebp), %eax
movl %eax, %edx
#APP
# 31 "./cpu/ports.c" 1
in %dx, %ax
# 0 "" 2
#NO_APP
movw %ax, -2(%ebp)
.loc 1 32 0
movzwl -2(%ebp), %eax
.loc 1 33 0
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
.LFE2:
.size port_word_in, .-port_word_in
.globl port_word_out
.type port_word_out, @function
port_word_out:
.LFB3:
.loc 1 35 0
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
subl $8, %esp
movl 8(%ebp), %edx
movl 12(%ebp), %eax
movw %dx, -4(%ebp)
movw %ax, -8(%ebp)
.loc 1 36 0
movzwl -8(%ebp), %eax
movzwl -4(%ebp), %edx
#APP
# 36 "./cpu/ports.c" 1
out %ax, %dx
# 0 "" 2
.loc 1 37 0
#NO_APP
nop
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
.LFE3:
.size port_word_out, .-port_word_out
.Letext0:
.file 2 "./cpu/../cpu/types.h"
.section .debug_info,"",@progbits
.Ldebug_info0:
.long 0x12d
.value 0x4
.long .Ldebug_abbrev0
.byte 0x4
.uleb128 0x1
.long .LASF10
.byte 0xc
.long .LASF11
.long .LASF12
.long .Ltext0
.long .Letext0-.Ltext0
.long .Ldebug_line0
.uleb128 0x2
.byte 0x4
.byte 0x7
.long .LASF0
.uleb128 0x3
.byte 0x4
.byte 0x5
.string "int"
.uleb128 0x4
.string "u16"
.byte 0x2
.byte 0x8
.long 0x3e
.uleb128 0x2
.byte 0x2
.byte 0x7
.long .LASF1
.uleb128 0x2
.byte 0x2
.byte 0x5
.long .LASF2
.uleb128 0x4
.string "u8"
.byte 0x2
.byte 0xa
.long 0x56
.uleb128 0x2
.byte 0x1
.byte 0x8
.long .LASF3
.uleb128 0x2
.byte 0x1
.byte 0x6
.long .LASF4
.uleb128 0x5
.long .LASF7
.byte 0x1
.byte 0x6
.long 0x4c
.long .LFB0
.long .LFE0-.LFB0
.uleb128 0x1
.byte 0x9c
.long 0x9a
.uleb128 0x6
.long .LASF5
.byte 0x1
.byte 0x6
.long 0x33
.uleb128 0x2
.byte 0x91
.sleb128 -28
.uleb128 0x7
.long .LASF9
.byte 0x1
.byte 0x7
.long 0x4c
.uleb128 0x2
.byte 0x91
.sleb128 -9
.byte 0
.uleb128 0x8
.long .LASF13
.byte 0x1
.byte 0x14
.long .LFB1
.long .LFE1-.LFB1
.uleb128 0x1
.byte 0x9c
.long 0xcc
.uleb128 0x6
.long .LASF5
.byte 0x1
.byte 0x14
.long 0x33
.uleb128 0x2
.byte 0x91
.sleb128 -12
.uleb128 0x6
.long .LASF6
.byte 0x1
.byte 0x14
.long 0x4c
.uleb128 0x2
.byte 0x91
.sleb128 -16
.byte 0
.uleb128 0x5
.long .LASF8
.byte 0x1
.byte 0x1d
.long 0x33
.long .LFB2
.long .LFE2-.LFB2
.uleb128 0x1
.byte 0x9c
.long 0x102
.uleb128 0x6
.long .LASF5
.byte 0x1
.byte 0x1d
.long 0x33
.uleb128 0x2
.byte 0x91
.sleb128 -28
.uleb128 0x7
.long .LASF9
.byte 0x1
.byte 0x1e
.long 0x33
.uleb128 0x2
.byte 0x91
.sleb128 -10
.byte 0
.uleb128 0x9
.long .LASF14
.byte 0x1
.byte 0x23
.long .LFB3
.long .LFE3-.LFB3
.uleb128 0x1
.byte 0x9c
.uleb128 0x6
.long .LASF5
.byte 0x1
.byte 0x23
.long 0x33
.uleb128 0x2
.byte 0x91
.sleb128 -12
.uleb128 0x6
.long .LASF6
.byte 0x1
.byte 0x23
.long 0x33
.uleb128 0x2
.byte 0x91
.sleb128 -16
.byte 0
.byte 0
.section .debug_abbrev,"",@progbits
.Ldebug_abbrev0:
.uleb128 0x1
.uleb128 0x11
.byte 0x1
.uleb128 0x25
.uleb128 0xe
.uleb128 0x13
.uleb128 0xb
.uleb128 0x3
.uleb128 0xe
.uleb128 0x1b
.uleb128 0xe
.uleb128 0x11
.uleb128 0x1
.uleb128 0x12
.uleb128 0x6
.uleb128 0x10
.uleb128 0x17
.byte 0
.byte 0
.uleb128 0x2
.uleb128 0x24
.byte 0
.uleb128 0xb
.uleb128 0xb
.uleb128 0x3e
.uleb128 0xb
.uleb128 0x3
.uleb128 0xe
.byte 0
.byte 0
.uleb128 0x3
.uleb128 0x24
.byte 0
.uleb128 0xb
.uleb128 0xb
.uleb128 0x3e
.uleb128 0xb
.uleb128 0x3
.uleb128 0x8
.byte 0
.byte 0
.uleb128 0x4
.uleb128 0x16
.byte 0
.uleb128 0x3
.uleb128 0x8
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x49
.uleb128 0x13
.byte 0
.byte 0
.uleb128 0x5
.uleb128 0x2e
.byte 0x1
.uleb128 0x3f
.uleb128 0x19
.uleb128 0x3
.uleb128 0xe
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x27
.uleb128 0x19
.uleb128 0x49
.uleb128 0x13
.uleb128 0x11
.uleb128 0x1
.uleb128 0x12
.uleb128 0x6
.uleb128 0x40
.uleb128 0x18
.uleb128 0x2117
.uleb128 0x19
.uleb128 0x1
.uleb128 0x13
.byte 0
.byte 0
.uleb128 0x6
.uleb128 0x5
.byte 0
.uleb128 0x3
.uleb128 0xe
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x49
.uleb128 0x13
.uleb128 0x2
.uleb128 0x18
.byte 0
.byte 0
.uleb128 0x7
.uleb128 0x34
.byte 0
.uleb128 0x3
.uleb128 0xe
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x49
.uleb128 0x13
.uleb128 0x2
.uleb128 0x18
.byte 0
.byte 0
.uleb128 0x8
.uleb128 0x2e
.byte 0x1
.uleb128 0x3f
.uleb128 0x19
.uleb128 0x3
.uleb128 0xe
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x27
.uleb128 0x19
.uleb128 0x11
.uleb128 0x1
.uleb128 0x12
.uleb128 0x6
.uleb128 0x40
.uleb128 0x18
.uleb128 0x2117
.uleb128 0x19
.uleb128 0x1
.uleb128 0x13
.byte 0
.byte 0
.uleb128 0x9
.uleb128 0x2e
.byte 0x1
.uleb128 0x3f
.uleb128 0x19
.uleb128 0x3
.uleb128 0xe
.uleb128 0x3a
.uleb128 0xb
.uleb128 0x3b
.uleb128 0xb
.uleb128 0x27
.uleb128 0x19
.uleb128 0x11
.uleb128 0x1
.uleb128 0x12
.uleb128 0x6
.uleb128 0x40
.uleb128 0x18
.uleb128 0x2117
.uleb128 0x19
.byte 0
.byte 0
.byte 0
.section .debug_aranges,"",@progbits
.long 0x1c
.value 0x2
.long .Ldebug_info0
.byte 0x4
.byte 0
.value 0
.value 0
.long .Ltext0
.long .Letext0-.Ltext0
.long 0
.long 0
.section .debug_line,"",@progbits
.Ldebug_line0:
.section .debug_str,"MS",@progbits,1
.LASF0:
.string "unsigned int"
.LASF12:
.string "/home/os/OS_Project/Part4/10_scheduler"
.LASF3:
.string "unsigned char"
.LASF7:
.string "port_byte_in"
.LASF11:
.string "./cpu/ports.c"
.LASF10:
.string "GNU C11 5.4.0 20160609 -m32 -mtune=generic -march=i686 -g -fno-pie -ffreestanding -fno-builtin -fno-stack-protector"
.LASF2:
.string "short int"
.LASF9:
.string "result"
.LASF1:
.string "short unsigned int"
.LASF14:
.string "port_word_out"
.LASF8:
.string "port_word_in"
.LASF5:
.string "port"
.LASF6:
.string "data"
.LASF4:
.string "char"
.LASF13:
.string "port_byte_out"
.ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609"
.section .note.GNU-stack,"",@progbits