msp430-help: fix footer font color

This commit is contained in:
John 2023-10-04 04:44:26 -05:00
parent b24dd831fc
commit 04c5e2ddf3

View File

@ -37,7 +37,6 @@ impl SyntaxFragment {
} }
} }
fn opcode_info(o: &Opcode) { fn opcode_info(o: &Opcode) {
header!("Instruction:");
let (desc, as_rust) = usage(o); let (desc, as_rust) = usage(o);
println!("Usage: {o}{}\n{desc} ( {as_rust} )", params(o)); println!("Usage: {o}{}\n{desc} ( {as_rust} )", params(o));
footer!("https://mspgcc.sourceforge.net/manual/x223.html"); footer!("https://mspgcc.sourceforge.net/manual/x223.html");
@ -190,5 +189,5 @@ macro header ($($x: expr),+) {
{print!("{}",SetForegroundColor(Color::Cyan));print!($($x),+);println!("{}",ResetAttributes);} {print!("{}",SetForegroundColor(Color::Cyan));print!($($x),+);println!("{}",ResetAttributes);}
} }
macro footer ($($x: expr),+) { macro footer ($($x: expr),+) {
{print!("{}",SetForegroundColor(Color::Black));print!($($x),+);println!("{}",ResetAttributes);} {print!("{}",SetForegroundColor(Color::DarkGray));print!($($x),+);println!("{}",ResetAttributes);}
} }