1 ; -----------------------------------------------------------------
2 ; EthTool v0.1 - Ethernet debugging tool
3 ; Ian Seyler @ Return Infinity
4 ; -----------------------------------------------------------------
8 [ORG 0x0000000000200000]
19 or al, 00100000b ; Convert character to lowercase if it is not already
27 jmp ethtool_command
; Didn't get any key we were expecting so try again.
36 mov rdi
, broadcastaddress
46 mov rsi
, receivestring
48 mov rdi
, EthernetBuffer
51 je ethtool_receive_nopacket
54 mov rsi
, EthernetBuffer
58 ethtool_receive_nopacket:
59 mov rsi
, receivednothingstring
63 ; -----------------------------------------------------------------
65 startstring: db 'EthTool: S to send a packet, R to recieve a packet, Q to quit.', 0
66 sendstring: db 13, 'Sending packet, ', 0
67 sentstring: db 'Sent', 0
68 receivestring: db 13, 'Receiving packet, ', 0
69 receivednothingstring: db 'Nothing there', 0
70 receiveddata: db 'Data received', 13, 0
71 broadcastaddress: db 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0