Add support for outputting multiple lines when dumping memory during the

register dump.  Change the default to bump 2 lines of output (32 bytes)
instead of 1 line (16 byte).
This commit is contained in:
John Baldwin 2001-11-03 21:53:46 +00:00
parent 46df5aa7bc
commit 0535c2bbad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85993
2 changed files with 26 additions and 4 deletions

View file

@ -907,17 +907,28 @@ dump.3: lodsl # Set offset
shll $0x4,%eax # * 0x10
addl %edx,%eax # + offset
xchgl %eax,%esi # Set pointer
dump.4: movb $0x10,%cl # Bytes to dump
dump.4: movb $2,%dl # Num lines
dump.4a: movb $0x10,%cl # Bytes to dump
dump.5: lodsb # Get byte and
call hex8 # dump it
decb %cl # Keep count
jz dump.7 # If done
jz dump.6a # If done
movb $'-',%al # Separator
cmpb $0x8,%cl # Half way?
je dump.6 # Yes
movb $' ',%al # Use space
dump.6: stosb # Save separator
jmp dump.5 # Continue
dump.6a: decb %dl # Keep count
jz dump.7 # If done
movb $0xa,%al # Line feed
stosb # Save one
movb $7,%cl # Leading
movb $' ',%al # spaces
dump.6b: stosb # Dump
decb %cl # spaces
jnz dump.6b
jmp dump.4a # Next line
dump.7: popl %ds # Restore
dump.8: popl %esi # Restore
movb $0xa,%al # Line feed

View file

@ -907,17 +907,28 @@ dump.3: lodsl # Set offset
shll $0x4,%eax # * 0x10
addl %edx,%eax # + offset
xchgl %eax,%esi # Set pointer
dump.4: movb $0x10,%cl # Bytes to dump
dump.4: movb $2,%dl # Num lines
dump.4a: movb $0x10,%cl # Bytes to dump
dump.5: lodsb # Get byte and
call hex8 # dump it
decb %cl # Keep count
jz dump.7 # If done
jz dump.6a # If done
movb $'-',%al # Separator
cmpb $0x8,%cl # Half way?
je dump.6 # Yes
movb $' ',%al # Use space
dump.6: stosb # Save separator
jmp dump.5 # Continue
dump.6a: decb %dl # Keep count
jz dump.7 # If done
movb $0xa,%al # Line feed
stosb # Save one
movb $7,%cl # Leading
movb $' ',%al # spaces
dump.6b: stosb # Dump
decb %cl # spaces
jnz dump.6b
jmp dump.4a # Next line
dump.7: popl %ds # Restore
dump.8: popl %esi # Restore
movb $0xa,%al # Line feed